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

14 lines
256 B
Ruby

class CreateCollections < ActiveRecord::Migration
def self.up
create_table :collections do |t|
t.string :title, :null => false
t.string :description
t.timestamps
end
end
def self.down
drop_table :collections
end
end