Skip to content

Commit

Permalink
Add required column for Doorkeeper 5
Browse files Browse the repository at this point in the history
  • Loading branch information
wvengen committed Oct 15, 2018
1 parent 554be09 commit 8117d74
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 13 additions & 0 deletions db/migrate/20181013195028_add_confidential_to_applications.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

class AddConfidentialToApplications < ActiveRecord::Migration
def change
add_column(
:oauth_applications,
:confidential,
:boolean,
null: false,
default: true
)
end
end
13 changes: 7 additions & 6 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20171201000000) do
ActiveRecord::Schema.define(version: 20181013194255) do

create_table "article_categories", force: :cascade do |t|
t.string "name", limit: 255, default: "", null: false
Expand Down Expand Up @@ -291,13 +291,14 @@
add_index "oauth_access_tokens", ["token"], name: "index_oauth_access_tokens_on_token", unique: true, using: :btree

create_table "oauth_applications", force: :cascade do |t|
t.string "name", limit: 255, null: false
t.string "uid", limit: 255, null: false
t.string "secret", limit: 255, null: false
t.text "redirect_uri", limit: 65535, null: false
t.string "scopes", limit: 255, default: "", null: false
t.string "name", limit: 255, null: false
t.string "uid", limit: 255, null: false
t.string "secret", limit: 255, null: false
t.text "redirect_uri", limit: 65535, null: false
t.string "scopes", limit: 255, default: "", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "confidential", default: true, null: false
end

add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree
Expand Down

0 comments on commit 8117d74

Please sign in to comment.