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
2021-07-16 12:58:13 -05:00

21 lines
373 B
Ruby

class CreatePhotos < ActiveRecord::Migration[5.1]
def self.up
create_table :photos do |t|
t.integer :category_id
t.string :flickr_url
t.string :photo_file_name
t.string :photo_content_type
t.integer :photo_file_size
t.datetime :photo_updated_at
t.timestamps
end
end
def self.down
drop_table :photos
end
end