jipe_app/db/migrate/20151206115924_create_timeline_years.rb
2017-08-14 10:53:30 +02:00

13 lines
303 B
Ruby

class CreateTimelineYears < ActiveRecord::Migration
def change
create_table :timeline_years do |t|
t.integer :year
t.integer :r
t.references :timeline_history, index: true
t.timestamps null: false
end
add_foreign_key :timeline_years, :timeline_histories
end
end