# 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 that you check this file into your version control system. ActiveRecord::Schema.define(version: 20150630174700) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "leads", force: :cascade do |t| t.integer "sales_contact_id" t.text "offer" t.string "name", limit: 255 t.datetime "created_at" t.datetime "updated_at" end create_table "rails_workflow_contexts", force: :cascade do |t| t.integer "parent_id" t.string "parent_type", limit: 255 t.text "body" t.datetime "created_at" t.datetime "updated_at" end add_index "rails_workflow_contexts", ["parent_id", "parent_type"], name: "index_rails_workflow_contexts_on_parent_id_and_parent_type", using: :btree create_table "rails_workflow_errors", force: :cascade do |t| t.string "message", limit: 255 t.text "stack_trace" t.integer "parent_id" t.string "parent_type", limit: 255 t.datetime "created_at" t.datetime "updated_at" t.boolean "resolved" end add_index "rails_workflow_errors", ["parent_id", "parent_type"], name: "index_rails_workflow_errors_on_parent_id_and_parent_type", using: :btree create_table "rails_workflow_operation_templates", force: :cascade do |t| t.string "title", limit: 255 t.text "source" t.text "dependencies" t.string "operation_class", limit: 255 t.integer "process_template_id" t.datetime "created_at" t.datetime "updated_at" t.boolean "async" t.integer "child_process_id" t.integer "assignment_id" t.string "assignment_type", limit: 255 t.string "kind", limit: 255 t.string "role", limit: 255 t.string "group", limit: 255 t.text "instruction" t.boolean "is_background", default: true t.string "type", limit: 255 t.string "partial_name", limit: 255 t.string "version" t.string "tag" t.uuid "uuid" end add_index "rails_workflow_operation_templates", ["process_template_id"], name: "index_rails_workflow_operation_templates_on_process_template_id", using: :btree add_index "rails_workflow_operation_templates", ["uuid"], name: "index_rails_workflow_operation_templates_on_uuid", using: :btree create_table "rails_workflow_operations", force: :cascade do |t| t.integer "status" t.boolean "async" t.string "title", limit: 255 t.datetime "created_at" t.datetime "updated_at" t.integer "process_id" t.integer "template_id" t.text "dependencies" t.integer "child_process_id" t.integer "assignment_id" t.string "assignment_type", limit: 255 t.datetime "assigned_at" t.string "type", limit: 255 t.boolean "is_active" t.datetime "completed_at" t.boolean "is_background" t.string "version" t.string "tag" end add_index "rails_workflow_operations", ["process_id"], name: "index_rails_workflow_operations_on_process_id", using: :btree add_index "rails_workflow_operations", ["template_id"], name: "index_rails_workflow_operations_on_template_id", using: :btree create_table "rails_workflow_process_templates", force: :cascade do |t| t.string "title", limit: 255 t.text "source" t.string "manager_class", limit: 255 t.string "process_class", limit: 255 t.datetime "created_at" t.datetime "updated_at" t.string "type", limit: 255 t.string "partial_name", limit: 255 t.string "version" t.string "tag" t.uuid "uuid" end add_index "rails_workflow_process_templates", ["uuid"], name: "index_rails_workflow_process_templates_on_uuid", using: :btree create_table "rails_workflow_processes", force: :cascade do |t| t.integer "status" t.boolean "async" t.string "title", limit: 255 t.datetime "created_at" t.datetime "updated_at" t.integer "template_id" t.string "type", limit: 255 t.string "version" t.string "tag" end create_table "sales_contacts", force: :cascade do |t| t.text "message" t.string "email", limit: 255 t.datetime "created_at" t.datetime "updated_at" end create_table "users", force: :cascade do |t| t.string "email", limit: 255, default: "", null: false t.string "encrypted_password", limit: 255, default: "", null: false t.string "reset_password_token", limit: 255 t.datetime "reset_password_sent_at" t.datetime "remember_created_at" t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" t.inet "current_sign_in_ip" t.inet "last_sign_in_ip" t.string "role", limit: 255 t.datetime "created_at" t.datetime "updated_at" end add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree end