photomix/db/migrate/20090602131321_create_collections.rb

15 lines
256 B
Ruby
Raw Normal View History

2009-06-03 01:33:39 +02:00
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