2023-08-06 17:49:58 -07:00
|
|
|
class CreateItemOutfitRelationships < ActiveRecord::Migration[4.2]
|
2010-11-10 13:59:54 -08:00
|
|
|
def self.up
|
|
|
|
create_table :item_outfit_relationships do |t|
|
|
|
|
t.integer :item_id
|
|
|
|
t.integer :outfit_id
|
|
|
|
t.boolean :is_worn
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :item_outfit_relationships
|
|
|
|
end
|
|
|
|
end
|