# 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: 20140323020645) do create_table "admin_user_notifications", force: true do |t| t.boolean "read", default: false t.integer "notification_id" t.integer "admin_user_id" t.datetime "created_at" t.datetime "updated_at" end add_index "admin_user_notifications", ["admin_user_id"], name: "index_admin_user_notifications_on_admin_user_id" add_index "admin_user_notifications", ["notification_id"], name: "index_admin_user_notifications_on_notification_id" create_table "admin_users", force: true do |t| t.string "name", default: "", null: false t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false t.string "reset_password_token" 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.string "current_sign_in_ip" t.string "last_sign_in_ip" t.datetime "created_at" t.datetime "updated_at" t.string "provider" t.string "uid" t.string "avatar" end add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true create_table "cities", force: true do |t| t.string "name" t.integer "country_id" t.integer "state_id" t.datetime "created_at" t.datetime "updated_at" end add_index "cities", ["country_id"], name: "index_cities_on_country_id" add_index "cities", ["state_id"], name: "index_cities_on_state_id" create_table "companies", force: true do |t| t.string "name" t.integer "country_id" t.integer "state_id" t.integer "city_id" t.string "address" t.string "address_complement" t.string "number" t.integer "zipcode" t.datetime "created_at" t.datetime "updated_at" end add_index "companies", ["city_id"], name: "index_companies_on_city_id" add_index "companies", ["country_id"], name: "index_companies_on_country_id" add_index "companies", ["state_id"], name: "index_companies_on_state_id" create_table "countries", force: true do |t| t.string "name" t.string "code" t.datetime "created_at" t.datetime "updated_at" end create_table "jobs", force: true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" end create_table "notifications", force: true do |t| t.string "title" t.string "message" t.string "link" t.datetime "created_at" t.datetime "updated_at" end create_table "people", force: true do |t| t.string "name" t.string "email" t.datetime "dob" t.integer "country_id" t.integer "state_id" t.integer "city_id" t.string "address" t.string "address_complement" t.string "number" t.integer "zipcode" t.boolean "employed" t.datetime "created_at" t.datetime "updated_at" end add_index "people", ["city_id"], name: "index_people_on_city_id" add_index "people", ["country_id"], name: "index_people_on_country_id" add_index "people", ["state_id"], name: "index_people_on_state_id" create_table "professional_experiences", force: true do |t| t.integer "people_id" t.integer "company_id" t.integer "job_id" t.datetime "started_at" t.datetime "finished_at" t.integer "finished_status" t.datetime "created_at" t.datetime "updated_at" end add_index "professional_experiences", ["company_id"], name: "index_professional_experiences_on_company_id" add_index "professional_experiences", ["job_id"], name: "index_professional_experiences_on_job_id" add_index "professional_experiences", ["people_id"], name: "index_professional_experiences_on_people_id" create_table "states", force: true do |t| t.string "name" t.string "code" t.integer "country_id" t.datetime "created_at" t.datetime "updated_at" end add_index "states", ["country_id"], name: "index_states_on_country_id" end