notebook/db/migrate/20171231174241_create_landmarks.rb
2018-07-05 01:10:52 -05:00

20 lines
475 B
Ruby

class CreateLandmarks < ActiveRecord::Migration[4.2]
def change
create_table :landmarks do |t|
t.string :name
t.string :description
t.string :other_names
t.references :universe, index: true, foreign_key: true
t.string :size
t.string :materials
t.string :colors
t.string :creation_story
t.string :established_year
t.string :notes
t.string :private_notes
t.timestamps null: false
end
end
end