mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Merge remote-tracking branch 'origin/registry-660' into registry-661
# Conflicts: # db/structure.sql # doc/repp-doc.md
This commit is contained in:
commit
56e3f236bc
156 changed files with 2085 additions and 1276 deletions
|
@ -0,0 +1,5 @@
|
|||
class RemoveDomainContactsContactType < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :domain_contacts, :contact_type, :string
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDomainContactsContactIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :domain_contacts, :contacts, name: 'domain_contacts_contact_id_fk'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDomainContactsDomainIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :domain_contacts, :domains, name: 'domain_contacts_domain_id_fk'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDomainTransfersDomainIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :domain_transfers, :domains
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDomainTransfersTransferFromIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :domain_transfers, :registrars, column: :transfer_from_id
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddDomainTransfersTransferToIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :domain_transfers, :registrars, column: :transfer_to_id
|
||||
end
|
||||
end
|
5
db/migrate/20180120182712_drop_log_domain_transfers.rb
Normal file
5
db/migrate/20180120182712_drop_log_domain_transfers.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class DropLogDomainTransfers < ActiveRecord::Migration
|
||||
def change
|
||||
drop_table :log_domain_transfers
|
||||
end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
class RemoveDomainTransfersPaperTrail < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :domain_transfers, :creator_str, :string
|
||||
remove_column :domain_transfers, :updator_str, :string
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameDomainsAuthInfoToTransferCode < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :domains, :auth_info, :transfer_code
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeDomainsTransferCodeToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :domains, :transfer_code, false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameContactsCopyFromIdToOriginalId < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :contacts, :copy_from_id, :original_id
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameDomainTransfersTransferFromIdToOldRegistrarId < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :domain_transfers, :transfer_from_id, :old_registrar_id
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class RenameDomainTransfersTransferToIdToNewRegistrarId < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :domain_transfers, :transfer_to_id, :new_registrar_id
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeContactsAuthInfoToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :contacts, :auth_info, false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeContactsCodeToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column_null :contacts, :code, false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
class AddUniqueConstraintToContactsCode < ActiveRecord::Migration
|
||||
def up
|
||||
execute <<-SQL
|
||||
ALTER TABLE contacts ADD CONSTRAINT unique_contact_code UNIQUE (code)
|
||||
SQL
|
||||
end
|
||||
|
||||
def down
|
||||
execute <<-SQL
|
||||
ALTER TABLE contacts DROP CONSTRAINT unique_contact_code
|
||||
SQL
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue