diff --git a/Gemfile.lock b/Gemfile.lock
index ed1d7be26..ed559f465 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -301,12 +301,12 @@ GEM
erubis
que (~> 0.8)
sinatra
- rack (1.6.8)
+ rack (1.6.9)
rack-accept (0.4.5)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
- rack-protection (1.5.3)
+ rack-protection (1.5.5)
rack
rack-test (0.6.3)
rack (>= 1.0)
diff --git a/app/controllers/admin/registrars_controller.rb b/app/controllers/admin/registrars_controller.rb
index dd31e1c3d..faa59ee6e 100644
--- a/app/controllers/admin/registrars_controller.rb
+++ b/app/controllers/admin/registrars_controller.rb
@@ -61,7 +61,6 @@ module Admin
:city,
:state,
:zip,
- :billing_address,
:country_code,
:email,
:phone,
diff --git a/app/views/admin/registrars/show.html.erb b/app/views/admin/registrars/show.html.erb
index ef75e4a64..ebf4ec179 100644
--- a/app/views/admin/registrars/show.html.erb
+++ b/app/views/admin/registrars/show.html.erb
@@ -119,10 +119,10 @@
<%= @registrar.email %>
- <%= t(:billing_address) %>
+ <%= t(:billing_email) %>
- <%= @registrar.billing_address %>
+ <%= @registrar.billing_email %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index a093243b2..d518980d8 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -19,7 +19,6 @@ en:
time:
formats:
default: "%Y-%m-%d %H:%M"
- longer: "%a, %e. %b %Y, %H:%M"
long: "%A, %e. %B %Y, %H:%M"
short: "%d.%m.%y, %H:%M"
date: "%Y-%m-%d"
@@ -28,7 +27,6 @@ en:
date:
formats:
default: "%Y-%m-%d"
- year_and_month: "%Y %B"
activerecord:
errors:
@@ -388,7 +386,6 @@ en:
choose: 'Choose...'
created_before: 'Created before'
created_after: 'Created after'
- billing_address: 'Billing address'
billing_email: 'Billing e-mail'
contact_phone: 'Contact phone'
contact_email: 'Contact e-mail'
diff --git a/db/migrate/20180308123240_remove_registrar_billing_address.rb b/db/migrate/20180308123240_remove_registrar_billing_address.rb
new file mode 100644
index 000000000..dbbbf2557
--- /dev/null
+++ b/db/migrate/20180308123240_remove_registrar_billing_address.rb
@@ -0,0 +1,5 @@
+class RemoveRegistrarBillingAddress < ActiveRecord::Migration
+ def change
+ remove_column :registrars, :billing_address
+ end
+end
diff --git a/db/structure.sql b/db/structure.sql
index 194bc8111..a2c77bbee 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -2139,7 +2139,6 @@ CREATE TABLE registrars (
name character varying NOT NULL,
reg_no character varying NOT NULL,
vat_no character varying,
- billing_address character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
creator_str character varying,
@@ -4696,6 +4695,8 @@ INSERT INTO schema_migrations (version) VALUES ('20180306183540');
INSERT INTO schema_migrations (version) VALUES ('20180306183549');
+INSERT INTO schema_migrations (version) VALUES ('20180308123240');
+
INSERT INTO schema_migrations (version) VALUES ('20180309053424');
INSERT INTO schema_migrations (version) VALUES ('20180309053921');
diff --git a/doc/models_complete.svg b/doc/models_complete.svg
index 9e5d6f4e5..296d20c67 100644
--- a/doc/models_complete.svg
+++ b/doc/models_complete.svg
@@ -1475,7 +1475,6 @@
name :string
reg_no :string
vat_no :string
-billing_address :string
created_at :datetime
updated_at :datetime
creator_str :string
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake
index 2b9909f68..9c439f7a7 100644
--- a/lib/tasks/import.rake
+++ b/lib/tasks/import.rake
@@ -77,7 +77,6 @@ namespace :import do
name: x.organization.try(:strip).presence || x.name.try(:strip).presence || x.handle.try(:strip).presence,
reg_no: x.ico.try(:strip),
vat_no: x.dic.try(:strip),
- billing_address: nil,
phone: x.telephone.try(:strip),
email: x.email.try(:strip),
billing_email: x.billing_address.try(:strip),