osem-fcy/db/migrate/20190818124036_create_booth_group.rb

12 lines
258 B
Ruby
Raw Normal View History

2019-08-18 22:58:27 +05:30
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