mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
24 lines
421 B
Ruby
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
|