Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #552 from y-yagi/fix_doorkeeper
Browse files Browse the repository at this point in the history
add `credential` column
  • Loading branch information
y-yagi committed Jul 30, 2018
2 parents 11a0f83 + fb9dd3a commit 5120626
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class AddConfidentialToDoorkeeperApplication < ActiveRecord::Migration[5.2]
def change
add_column(
:oauth_applications,
:confidential,
:boolean,
null: false,
default: true # maintaining backwards compatibility: require secrets
)
end
end
4 changes: 3 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2017_12_10_120545) do
ActiveRecord::Schema.define(version: 2018_07_30_225239) do

# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"

create_table "deleted_data", id: :serial, force: :cascade do |t|
Expand Down Expand Up @@ -81,6 +82,7 @@
t.string "scopes", default: "", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "confidential", default: true, null: false
t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true
end

Expand Down

0 comments on commit 5120626

Please sign in to comment.