Merge branch 'master' into registry-475

# Conflicts:
#	config/locales/et.yml
#	db/structure.sql
This commit is contained in:
Artur Beljajev 2017-06-09 17:32:14 +03:00
commit cb4f2b5eeb
79 changed files with 825 additions and 815 deletions

View file

@ -0,0 +1,6 @@
class RemoveAddressesWithVersions < ActiveRecord::Migration
def change
drop_table :addresses
drop_table :log_addresses
end
end

View file

@ -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

View file

@ -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

View file

@ -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