Renames confirmed_oauth_email to oauth_email

Refactors the way oauth_email is used to cover more cases (fixes pending specs)
This commit is contained in:
kikito
2016-01-26 12:44:55 +01:00
parent 92786764b7
commit a606c7aa8d
5 changed files with 31 additions and 27 deletions

View File

@@ -0,0 +1,5 @@
class RenameConfirmedOauthEmailToOauthEmail < ActiveRecord::Migration
def change
rename_column :users, :confirmed_oauth_email, :oauth_email
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160125100637) do
ActiveRecord::Schema.define(version: 20160126090634) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -398,7 +398,7 @@ ActiveRecord::Schema.define(version: 20160125100637) do
t.integer "notifications_count", default: 0
t.string "locale"
t.boolean "registering_with_oauth", default: false
t.string "confirmed_oauth_email"
t.string "oauth_email"
end
add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree