Experimental authentication for Launchpad and Google added

This commit is contained in:
Christoph Haas 2017-04-06 12:56:06 +02:00
parent 0c080386ef
commit 9a5ddb5e13
8 changed files with 154 additions and 44 deletions

View file

@ -0,0 +1,6 @@
class AddOmniauthToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :provider, :string
add_column :users, :uid, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170405144026) do
ActiveRecord::Schema.define(version: 20170405204143) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -76,6 +76,8 @@ ActiveRecord::Schema.define(version: 20170405144026) do
t.integer "failed_attempts", default: 0, null: false
t.string "unlock_token"
t.datetime "locked_at"
t.string "provider"
t.string "uid"
t.index ["email"], name: "index_users_on_email", unique: true, using: :btree
end