2009-05-22 14:13:46 +02:00
|
|
|
class CreateAlbum < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :albums do |t|
|
|
|
|
t.string :title, :length => 250, :null => false
|
|
|
|
t.text :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
|
|
|
|
|
2009-05-22 14:13:46 +02:00
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :albums
|
|
|
|
end
|
|
|
|
end
|