Add registrars.vat_rate DB column

#623
This commit is contained in:
Artur Beljajev 2018-02-28 08:38:26 +02:00
parent 4a41984a5c
commit f86ab085ac
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddRegistrarsVatRate < ActiveRecord::Migration
def change
add_column :registrars, :vat_rate, :decimal, precision: 4, scale: 3
end
end

View file

@ -2436,7 +2436,8 @@ CREATE TABLE registrars (
legacy_id integer, legacy_id integer,
reference_no character varying, reference_no character varying,
test_registrar boolean DEFAULT false, test_registrar boolean DEFAULT false,
language character varying NOT NULL language character varying NOT NULL,
vat_rate numeric(4,3)
); );
@ -5112,3 +5113,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180214213743');
INSERT INTO schema_migrations (version) VALUES ('20180218004148'); INSERT INTO schema_migrations (version) VALUES ('20180218004148');
INSERT INTO schema_migrations (version) VALUES ('20180228055259');