qi6_app/db/migrate/20151206115924_create_timeline_years.rb
2019-05-17 12:30:45 +02:00

13 lines
308 B
Ruby

class CreateTimelineYears < ActiveRecord::Migration[6.0]
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