payrejardi_app/db/migrate/20151206115924_create_timeline_years.rb
Nicolas Bally 3233232f4e initial
2019-02-01 12:07:55 +01: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