# 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 => 20151123235316) do create_table "mailboxer_conversation_opt_outs", :force => true do |t| t.integer "unsubscriber_id" t.string "unsubscriber_type" t.integer "conversation_id" end add_index "mailboxer_conversation_opt_outs", ["conversation_id"], :name => "index_mailboxer_conversation_opt_outs_on_conversation_id" add_index "mailboxer_conversation_opt_outs", ["unsubscriber_id", "unsubscriber_type"], :name => "index_mailboxer_conversation_opt_outs_on_unsubscriber_id_type" create_table "mailboxer_conversations", :force => true do |t| t.string "subject", :default => "" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "mailboxer_message_attachments", :force => true do |t| t.string "file" t.integer "message_id" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end create_table "mailboxer_notifications", :force => true do |t| t.string "type" t.text "body" t.string "subject", :default => "" t.integer "sender_id" t.string "sender_type" t.integer "conversation_id" t.boolean "draft", :default => false t.string "notification_code" t.integer "notified_object_id" t.string "notified_object_type" t.string "attachment" t.datetime "updated_at", :null => false t.datetime "created_at", :null => false t.boolean "global", :default => false t.datetime "expires" end add_index "mailboxer_notifications", ["conversation_id"], :name => "index_mailboxer_notifications_on_conversation_id" add_index "mailboxer_notifications", ["notified_object_id", "notified_object_type"], :name => "index_mailboxer_notifications_on_notified_object_id_and_type" add_index "mailboxer_notifications", ["sender_id", "sender_type"], :name => "index_mailboxer_notifications_on_sender_id_and_sender_type" add_index "mailboxer_notifications", ["type"], :name => "index_mailboxer_notifications_on_type" create_table "mailboxer_receipts", :force => true do |t| t.integer "receiver_id" t.string "receiver_type" t.integer "notification_id", :null => false t.boolean "is_read", :default => false t.boolean "trashed", :default => false t.boolean "deleted", :default => false t.string "mailbox_type", :limit => 25 t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end add_index "mailboxer_receipts", ["notification_id"], :name => "index_mailboxer_receipts_on_notification_id" add_index "mailboxer_receipts", ["receiver_id", "receiver_type"], :name => "index_mailboxer_receipts_on_receiver_id_and_receiver_type" create_table "users", :force => true do |t| t.string "name" t.string "email" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false end end