From 810c34ffaf020f01400de7ce157ff255a070e889 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 9 Mar 2018 08:24:24 +0200 Subject: [PATCH] Revert "Change `registrars.country_code` DB column to NOT NULL" This reverts commit f449f1c --- ...80228084818_change_registrars_country_code_to_not_null.rb | 5 ----- db/structure.sql | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 db/migrate/20180228084818_change_registrars_country_code_to_not_null.rb diff --git a/db/migrate/20180228084818_change_registrars_country_code_to_not_null.rb b/db/migrate/20180228084818_change_registrars_country_code_to_not_null.rb deleted file mode 100644 index 16a66e989..000000000 --- a/db/migrate/20180228084818_change_registrars_country_code_to_not_null.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ChangeRegistrarsCountryCodeToNotNull < ActiveRecord::Migration - def change - change_column_null :registrars, :country_code, false - end -end diff --git a/db/structure.sql b/db/structure.sql index 15f92fe2b..fbbb4a7d0 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -2147,7 +2147,7 @@ CREATE TABLE registrars ( phone character varying, email character varying, billing_email character varying, - country_code character varying NOT NULL, + country_code character varying, state character varying, city character varying, street character varying, @@ -4670,8 +4670,6 @@ INSERT INTO schema_migrations (version) VALUES ('20180228070431'); INSERT INTO schema_migrations (version) VALUES ('20180228074442'); -INSERT INTO schema_migrations (version) VALUES ('20180228084818'); - INSERT INTO schema_migrations (version) VALUES ('20180306180401'); INSERT INTO schema_migrations (version) VALUES ('20180306181538');