Change domain registrar_id and registrant_id to NOT NULL

#480
This commit is contained in:
Artur Beljajev 2017-06-06 19:16:46 +03:00
parent b20e31f3c8
commit 930a59ae67
4 changed files with 34 additions and 17 deletions

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