Skip to content

Commit

Permalink
drop doorkeeper tables
Browse files Browse the repository at this point in the history
  • Loading branch information
8398a7 committed Jul 19, 2018
1 parent 8c45324 commit b43d018
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 39 deletions.
7 changes: 7 additions & 0 deletions db/migrate/20180719105747_drop_doorkeeper_tables.rb
@@ -0,0 +1,7 @@
class DropDoorkeeperTables < ActiveRecord::Migration[5.2]
def change
drop_table :oauth_applications
drop_table :oauth_access_grants
drop_table :oauth_access_tokens
end
end
40 changes: 1 addition & 39 deletions db/schema.rb
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2018_07_18_142723) do
ActiveRecord::Schema.define(version: 2018_07_19_105747) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -84,44 +84,6 @@
t.index ["user_id"], name: "index_messages_on_user_id"
end

create_table "oauth_access_grants", force: :cascade do |t|
t.integer "resource_owner_id", null: false
t.integer "application_id", null: false
t.string "token", null: false
t.integer "expires_in", null: false
t.text "redirect_uri", null: false
t.datetime "created_at", null: false
t.datetime "revoked_at"
t.string "scopes"
t.index ["token"], name: "index_oauth_access_grants_on_token", unique: true
end

create_table "oauth_access_tokens", force: :cascade do |t|
t.integer "resource_owner_id"
t.integer "application_id"
t.string "token", null: false
t.string "refresh_token"
t.integer "expires_in"
t.datetime "revoked_at"
t.datetime "created_at", null: false
t.string "scopes"
t.index ["refresh_token"], name: "index_oauth_access_tokens_on_refresh_token", unique: true
t.index ["resource_owner_id"], name: "index_oauth_access_tokens_on_resource_owner_id"
t.index ["token"], name: "index_oauth_access_tokens_on_token", unique: true
end

create_table "oauth_applications", force: :cascade do |t|
t.string "name", null: false
t.string "uid", null: false
t.string "secret", null: false
t.text "redirect_uri", null: false
t.string "scopes", default: "", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "confidential", default: true, null: false
t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true
end

create_table "scores", force: :cascade do |t|
t.integer "state", default: 7, null: false
t.integer "score"
Expand Down
Binary file modified docs/erd.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b43d018

Please sign in to comment.