centaure2_app/db/migrate/20150401194327_create_sejour_dates.rb
Nicolas Bally 7d852277ae initial
2015-04-09 22:18:02 +02:00

16 lines
341 B
Ruby

class CreateSejourDates < ActiveRecord::Migration
def change
create_table :sejour_dates do |t|
t.date :start_at
t.date :end_at
t.integer :age_min
t.integer :age_max
t.references :sejour, index: true
t.decimal :price, :precision => 15, :scale => 10
t.timestamps null: false
end
end
end