osem-fcy/db/migrate/20140610064046_create_photos.rb
2014-06-19 21:09:15 +05:30

13 lines
327 B
Ruby

class CreatePhotos < ActiveRecord::Migration
def change
create_table :photos do |t|
t.text :description
t.string :picture_file_name
t.string :picture_content_type
t.integer :picture_file_size
t.datetime :picture_updated_at
t.belongs_to :conference
t.timestamps
end
end
end