mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
10 lines
319 B
Ruby
10 lines
319 B
Ruby
|
class ChangeAuthProviderToPolymorphic < ActiveRecord::Migration
|
||
|
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
|