spec/dummy/db/schema.rb in devise_oauth2_rails4-1.1.2 vs spec/dummy/db/schema.rb in devise_oauth2_rails4-1.1.3

- old
+ new

@@ -1,77 +1,83 @@ +# 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. +# It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(:version => 20111014161437) do +ActiveRecord::Schema.define(version: 20140306063000) do - create_table "oauth2_access_tokens", :force => true do |t| - t.integer "user_id" + 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", ["token"], :name => "index_oauth2_access_tokens_on_token", :unique => true - add_index "oauth2_access_tokens", ["user_id"], :name => "index_oauth2_access_tokens_on_user_id" + 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 "user_id" + 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.string "redirect_uri" 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", ["token"], :name => "index_oauth2_authorization_codes_on_token", :unique => true - add_index "oauth2_authorization_codes", ["user_id"], :name => "index_oauth2_authorization_codes_on_user_id" + 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.string "name" + 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 "website" 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 + add_index "oauth2_clients", ["identifier"], name: "index_oauth2_clients_on_identifier", unique: true - create_table "oauth2_refresh_tokens", :force => true do |t| - t.integer "user_id" + 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", ["token"], :name => "index_oauth2_refresh_tokens_on_token", :unique => true - add_index "oauth2_refresh_tokens", ["user_id"], :name => "index_oauth2_refresh_tokens_on_user_id" + 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", :default => "", :null => false - t.string "encrypted_password", :limit => 128, :default => "", :null => false + create_table "users", force: true do |t| + t.string "email" + t.string "encrypted_password" t.datetime "created_at" t.datetime "updated_at" end end