Added carousel model

This commit is contained in:
Gopesh Tulsyan 2014-06-10 12:43:15 +05:30
parent 069cc0eb4c
commit d9818f2749
6 changed files with 72 additions and 11 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

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140605125153) do
ActiveRecord::Schema.define(version: 20140610064046) do
create_table "answers", force: true do |t|
t.string "title"
@ -50,15 +50,15 @@ ActiveRecord::Schema.define(version: 20140605125153) do
add_index "comments", ["user_id"], name: "index_comments_on_user_id"
create_table "conferences", force: true do |t|
t.string "guid", null: false
t.string "title", null: false
t.string "short_title", null: false
t.string "guid", null: false
t.string "title", null: false
t.string "short_title", null: false
t.string "social_tag"
t.string "contact_email", null: false
t.string "timezone", null: false
t.string "contact_email", null: false
t.string "timezone", null: false
t.string "html_export_path"
t.date "start_date", null: false
t.date "end_date", null: false
t.date "start_date", null: false
t.date "end_date", null: false
t.integer "venue_id"
t.datetime "created_at"
t.datetime "updated_at"
@ -209,6 +209,17 @@ ActiveRecord::Schema.define(version: 20140605125153) 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"
@ -308,9 +319,9 @@ ActiveRecord::Schema.define(version: 20140605125153) do
end
create_table "tracks", force: true do |t|
t.string "guid", null: false
t.string "guid", null: false
t.integer "conference_id"
t.string "name", null: false
t.string "name", null: false
t.text "description"
t.string "color"
t.datetime "created_at"