impress/db/migrate/20101109021147_create_item_outfit_relationships.rb

16 lines
307 B
Ruby
Raw Normal View History

class CreateItemOutfitRelationships < ActiveRecord::Migration
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