# 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: 20140306063000) do create_table "oauth2_access_tokens", force: true do |t| t.integer "owner_id" t.string "owner_type" t.text "permissions" t.integer "client_id" t.integer "refresh_token_id" t.string "token" t.datetime "expires_at" t.datetime "created_at" t.datetime "updated_at" end add_index "oauth2_access_tokens", ["client_id"], name: "index_oauth2_access_tokens_on_client_id" add_index "oauth2_access_tokens", ["expires_at"], name: "index_oauth2_access_tokens_on_expires_at" add_index "oauth2_access_tokens", ["owner_id"], name: "index_oauth2_access_tokens_on_owner_id" add_index "oauth2_access_tokens", ["token"], name: "index_oauth2_access_tokens_on_token", unique: true create_table "oauth2_authorization_codes", force: true do |t| t.integer "owner_id" t.string "owner_type" t.integer "client_id" t.string "token" t.datetime "expires_at" t.datetime "created_at" t.datetime "updated_at" end add_index "oauth2_authorization_codes", ["client_id"], name: "index_oauth2_authorization_codes_on_client_id" add_index "oauth2_authorization_codes", ["expires_at"], name: "index_oauth2_authorization_codes_on_expires_at" add_index "oauth2_authorization_codes", ["owner_id"], name: "index_oauth2_authorization_codes_on_owner_id" add_index "oauth2_authorization_codes", ["token"], name: "index_oauth2_authorization_codes_on_token", unique: true create_table "oauth2_clients", force: true do |t| t.integer "owner_id" t.string "owner_type" t.text "default_permissions" t.string "redirect_uri" t.string "identifier" t.string "secret" t.boolean "passthrough", default: false, null: false t.datetime "created_at" t.datetime "updated_at" end add_index "oauth2_clients", ["identifier"], name: "index_oauth2_clients_on_identifier", unique: true create_table "oauth2_refresh_tokens", force: true do |t| t.integer "owner_id" t.string "owner_type" t.integer "client_id" t.string "token" t.datetime "expires_at" t.datetime "created_at" t.datetime "updated_at" end add_index "oauth2_refresh_tokens", ["client_id"], name: "index_oauth2_refresh_tokens_on_client_id" add_index "oauth2_refresh_tokens", ["expires_at"], name: "index_oauth2_refresh_tokens_on_expires_at" add_index "oauth2_refresh_tokens", ["owner_id"], name: "index_oauth2_refresh_tokens_on_owner_id" add_index "oauth2_refresh_tokens", ["token"], name: "index_oauth2_refresh_tokens_on_token", unique: true create_table "users", force: true do |t| t.string "email" t.string "encrypted_password" t.datetime "created_at" t.datetime "updated_at" end end