mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 04:07:33 +02:00
13 lines
431 B
Ruby
13 lines
431 B
Ruby
class ChangeEmailVerificationFieldsToCitext < ActiveRecord::Migration[6.0]
|
|
def up
|
|
enable_extension 'citext'
|
|
change_column :email_address_verifications, :email, :citext
|
|
change_column :email_address_verifications, :domain, :citext
|
|
end
|
|
|
|
def down
|
|
change_column :email_address_verifications, :email, :string
|
|
change_column :email_address_verifications, :domain, :string
|
|
disable_extension 'citext'
|
|
end
|
|
end
|