1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00
danbarberphoto/db/migrate/20101006095457_create_photos.rb
2010-10-07 11:02:13 -04:00

24 lines
421 B
Ruby

class CreatePhotos < ActiveRecord::Migration
def self.up
create_table :photos do |t|
t.integer :category_id
t.string :flickr_url
t.integer :parent_id
t.string :content_type
t.string :filename
t.string :thumbnail
t.integer :size
t.integer :width
t.integer :height
t.timestamps
end
end
def self.down
drop_table :photos
end
end