Scaffold park model
This commit is contained in:
13
db/migrate/20251008044109_create_parks.rb
Normal file
13
db/migrate/20251008044109_create_parks.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateParks < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :parks do |t|
|
||||
t.string :code, null: false
|
||||
t.string :name, null: false
|
||||
t.datetime :established_date, null: false
|
||||
t.text :states, null: false
|
||||
t.json :properties, null: false, default: {}
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user