From 9f6210892aac7d398467a3d028e3ed1627a01760 Mon Sep 17 00:00:00 2001 From: Ernest Walzel Date: Sat, 13 May 2017 22:11:43 +0200 Subject: [PATCH] Add effective_on column to ra.municipality_changes --- ...3200748_ra_add_effective_on_to_municipality_changes.rb | 5 +++++ db/structure.sql | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 db/migrate/20170513200748_ra_add_effective_on_to_municipality_changes.rb diff --git a/db/migrate/20170513200748_ra_add_effective_on_to_municipality_changes.rb b/db/migrate/20170513200748_ra_add_effective_on_to_municipality_changes.rb new file mode 100644 index 00000000..7f8e8184 --- /dev/null +++ b/db/migrate/20170513200748_ra_add_effective_on_to_municipality_changes.rb @@ -0,0 +1,5 @@ +class RaAddEffectiveOnToMunicipalityChanges < ActiveRecord::Migration[5.0] + def change + add_column 'ra.municipality_changes', 'effective_on', :date + end +end diff --git a/db/structure.sql b/db/structure.sql index 46859d79..a0e7bb52 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1641,7 +1641,8 @@ CREATE TABLE municipality_changes ( created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, city_id integer, - change_id integer + change_id integer, + effective_on date ); @@ -6836,6 +6837,5 @@ INSERT INTO "schema_migrations" (version) VALUES ('20170503112646'), ('20170503203539'), ('20170506104022'), -('20170506190014'); - - +('20170506190014'), +('20170513200748');