Skip to content

Commit

Permalink
Change SelectedCountes to be related to chapter
Browse files Browse the repository at this point in the history
Counties no longer related directly to region to allow more fine grained
control of which section of redcross they relate to.  They now link to
chapters, which should link to regions.  This commit is only for the
migration, with further commits related to the code to follow.

Issue #277: Add County, Chapter Code and Chapter Name
  • Loading branch information
Frank Duncan committed Feb 21, 2019
1 parent 1d49b95 commit 2d02481
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions migrations/20190221112829-rename-county-region-to-chapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.renameColumn("SelectedCounties", "region", "chapter")
},

down: (queryInterface, Sequelize) => {
return queryInterface.renameColumn("SelectedCounties", "chapter", "region")
}
};

0 comments on commit 2d02481

Please sign in to comment.