Added photo model

This commit is contained in:
Gopesh Tulsyan 2014-06-10 12:43:15 +05:30
parent 0f697f3dbe
commit 69ddea47dd
6 changed files with 62 additions and 1 deletions

View file

@ -0,0 +1,13 @@
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

View file

@ -245,6 +245,17 @@ ActiveRecord::Schema.define(version: 20140618062623) do
t.string "languages"
end
create_table "photos", force: true 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.integer "conference_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "qanswers", force: true do |t|
t.integer "question_id"
t.integer "answer_id"