mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Move emails & domains to citext, CC fixes
This commit is contained in:
parent
438a2e05ab
commit
f8eea08357
5 changed files with 34 additions and 12 deletions
|
@ -0,0 +1,13 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue