photomix/db/migrate/20090520163842_create_album.rb

14 lines
253 B
Ruby
Raw Normal View History

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
t.timestamps
end
end
def self.down
drop_table :albums
end
end