created item groups and link banners and their associations and fixed bugs with join tables
This commit is contained in:
13
front-api/db/migrate/20150322044941_create_item_groups.rb
Normal file
13
front-api/db/migrate/20150322044941_create_item_groups.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateItemGroups < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :item_groups do |t|
|
||||
t.string :name
|
||||
t.text :description
|
||||
t.boolean :visible
|
||||
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
|
||||
create_join_table :item, :item_groups
|
||||
end
|
||||
Reference in New Issue
Block a user