2009-05-22 14:13:46 +02:00
|
|
|
class CreatePhotos < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :photos do |t|
|
2012-07-24 23:26:16 +02:00
|
|
|
t.string :title, :length => 250
|
2009-05-22 14:13:46 +02:00
|
|
|
t.text :description
|
|
|
|
t.references :album
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :photos
|
|
|
|
end
|
|
|
|
end
|