Skip to content

Instantly share code, notes, and snippets.

@tonatiuh
Created Nov 9, 2012
Embed
What would you like to do?
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20121107181758) do
create_table "bouquet_images", :force => true do |t|
t.string "image"
t.string "title"
asfdsafsfdsafsfsafa
end
create_table "bouquets", :force => true do |t|
t.integer "sender_id", :limit => 8
t.integer "recipient_id", :limit => 8
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "bouquet_image_id"
t.text "sender_message"
t.datetime "delivery_date"
end
create_table "comments", :force => true do |t|
t.integer "bouquet_id"
t.text "message"
t.integer "commenter_id"
t.string "commenter_type"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "comments", ["bouquet_id"], :name => "index_comments_on_bouquet_id"
add_index "comments", ["commenter_id", "commenter_type"], :name => "index_comments_on_commenter_id_and_commenter_type"
add_index "comments", ["commenter_id"], :name => "index_comments_on_commenter_id"
add_index "comments", ["commenter_type", "commenter_id"], :name => "index_comments_on_commenter_type_and_commenter_id"
create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0
t.integer "attempts", :default => 0
t.text "handler"
t.text "last_error"
t.datetime "run_at"
t.datetime "locked_at"
t.datetime "failed_at"
t.string "locked_by"
t.string "queue"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
create_table "invitations", :force => true do |t|
t.integer "bouquet_id"
t.integer "inviter_id"
t.integer "invitee_id"
t.datetime "sent_at"
t.datetime "commented_at"
end
add_index "invitations", ["bouquet_id"], :name => "index_invitations_on_bouquet_id"
add_index "invitations", ["invitee_id"], :name => "index_invitations_on_invitee_id"
add_index "invitations", ["inviter_id"], :name => "index_invitations_on_inviter_id"
create_table "users", :force => true do |t|
t.string "provider"
t.string "name"
t.string "oauth_token"
t.datetime "oauth_expires_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.integer "uid", :limit => 8
t.date "birthday_date"
t.string "gender"
end
add_index "users", ["gender"], :name => "index_users_on_gender"
add_index "users", ["uid"], :name => "index_users_on_uid"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment