mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
12 lines
354 B
Ruby
12 lines
354 B
Ruby
# frozen_string_literal:true
|
|
|
|
class ChangeAuthProviderToPolymorphic < ActiveRecord::Migration[4.2]
|
|
def change
|
|
remove_column :o_auth2_providers, :auth_provider_id, :integer
|
|
remove_column :auth_providers, :type, :string
|
|
|
|
add_column :auth_providers, :providable_type, :string
|
|
add_column :auth_providers, :providable_id, :integer
|
|
end
|
|
end
|