Remove unused attribute

Closes #747
This commit is contained in:
Artur Beljajev 2018-03-08 14:36:19 +02:00
parent 7f2ad25ee6
commit f7301c3aea
7 changed files with 7 additions and 11 deletions

View file

@ -70,7 +70,6 @@ module Admin
:city,
:state,
:zip,
:billing_address,
:country_code,
:email,
:phone,

View file

@ -114,12 +114,6 @@
<dd>
<%= @registrar.email %>
</dd>
<dt>
<%= t(:billing_address) %>
</dt>
<dd>
<%= @registrar.billing_address %>
</dd>
<dt>
<%= t(:billing_email) %>
</dt>

View file

@ -395,7 +395,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'

View file

@ -0,0 +1,5 @@
class RemoveRegistrarBillingAddress < ActiveRecord::Migration
def change
remove_column :registrars, :billing_address
end
end

View file

@ -2139,7 +2139,6 @@ CREATE TABLE registrars (
name character varying,
reg_no character varying,
vat_no character varying,
billing_address character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
creator_str character varying,
@ -4678,3 +4677,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180306183540');
INSERT INTO schema_migrations (version) VALUES ('20180306183549');
INSERT INTO schema_migrations (version) VALUES ('20180308123240');

View file

@ -1475,7 +1475,6 @@
<text text-anchor="start" x="1600.5" y="-2624.3" font-family="Times,serif" font-size="14.00">name :string</text>
<text text-anchor="start" x="1600.5" y="-2609.3" font-family="Times,serif" font-size="14.00">reg_no :string</text>
<text text-anchor="start" x="1600.5" y="-2594.3" font-family="Times,serif" font-size="14.00">vat_no :string</text>
<text text-anchor="start" x="1600.5" y="-2579.3" font-family="Times,serif" font-size="14.00">billing_address :string</text>
<text text-anchor="start" x="1600.5" y="-2564.3" font-family="Times,serif" font-size="14.00">created_at :datetime</text>
<text text-anchor="start" x="1600.5" y="-2549.3" font-family="Times,serif" font-size="14.00">updated_at :datetime</text>
<text text-anchor="start" x="1600.5" y="-2534.3" font-family="Times,serif" font-size="14.00">creator_str :string</text>

Before

Width:  |  Height:  |  Size: 220 KiB

After

Width:  |  Height:  |  Size: 220 KiB

Before After
Before After

View file

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