photomix/db/migrate/20090602131547_create_collection_albums.rb
2009-06-03 01:33:39 +02:00

15 lines
264 B
Ruby

class CreateCollectionAlbums < ActiveRecord::Migration
def self.up
create_table :collection_albums do |t|
t.references :collection
t.references :album
t.timestamps
end
end
def self.down
drop_table :collection_albums
end
end