photomix/db/migrate/20090602131321_create_collections.rb

18 lines
396 B
Ruby
Raw Permalink 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
2012-07-26 22:26:23 +02:00
t.decimal :rating_average, :default => 0, :precision => 6, :scale => 2
t.string :url
t.boolean :public, :default => false
2009-06-03 01:33:39 +02:00
t.timestamps
end
end
def self.down
drop_table :collections
end
end