osem-fcy/db/migrate/20190818124036_create_booth_group.rb
2019-08-18 22:58:27 +05:30

11 lines
258 B
Ruby

class CreateBoothGroup < ActiveRecord::Migration[5.2]
def change
create_table :booth_groups do |t|
t.references :program
t.string :name, null: false
t.timestamps
end
add_reference :booths, :booth_group, index: true
end
end