mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Merge branch 'master' into registry-475
# Conflicts: # config/locales/et.yml # db/structure.sql
This commit is contained in:
commit
cb4f2b5eeb
79 changed files with 825 additions and 815 deletions
|
@ -0,0 +1,6 @@
|
|||
class RemoveAddressesWithVersions < ActiveRecord::Migration
|
||||
def change
|
||||
drop_table :addresses
|
||||
drop_table :log_addresses
|
||||
end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
class AddForeignKeyConstraintsToDomains < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :domains, :registrars, name: 'domains_registrar_id_fk'
|
||||
add_foreign_key :domains, :contacts, column: :registrant_id, name: 'domains_registrant_id_fk'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
class ChangeDomainRegistrarAndRegistrantToNotNull < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :domains, :registrar_id, :integer, null: false
|
||||
change_column :domains, :registrant_id, :integer, null: false
|
||||
end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
class ImproveContactRegistrarId < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :contacts, :registrars, name: 'contacts_registrar_id_fk'
|
||||
change_column :contacts, :registrar_id, :integer, null: false
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue