Change registrars.country_code DB column to NOT NULL

#623
This commit is contained in:
Artur Beljajev 2018-02-28 10:49:20 +02:00
parent 70fb91c812
commit f449f1c107
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class ChangeRegistrarsCountryCodeToNotNull < ActiveRecord::Migration
def change
change_column_null :registrars, :country_code, false
end
end

View file

@ -2424,7 +2424,7 @@ CREATE TABLE registrars (
phone character varying,
email character varying,
billing_email character varying,
country_code character varying,
country_code character varying NOT NULL,
state character varying,
city character varying,
street character varying,
@ -5122,3 +5122,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180228070431');
INSERT INTO schema_migrations (version) VALUES ('20180228074442');
INSERT INTO schema_migrations (version) VALUES ('20180228084818');