aboutsummaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-03-26 22:09:43 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:57:39 +0100
commit9649f88d2857e686c59867031aaad228cc4358fa (patch)
tree5486c3ea0a15c4459337d725eb8a4fa63e34e3bc /db/migrate
parent4f4fd0694024cbf9051ea1ab88abeadb69dcd1a6 (diff)
downloadgovuk-mini-environment-admin-9649f88d2857e686c59867031aaad228cc4358fa.tar
govuk-mini-environment-admin-9649f88d2857e686c59867031aaad228cc4358fa.tar.gz
Add a new signon_users field to MiniEnvironment
To store the data regarding the Signon users seeded in the database. Store this as JSON, rather than data in different tables to simplify the schema, as I don't expect it to change at all once the MiniEnvironment is created.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180326201857_add_signon_users_to_mini_environment.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20180326201857_add_signon_users_to_mini_environment.rb b/db/migrate/20180326201857_add_signon_users_to_mini_environment.rb
new file mode 100644
index 0000000..b78e3c9
--- /dev/null
+++ b/db/migrate/20180326201857_add_signon_users_to_mini_environment.rb
@@ -0,0 +1,5 @@
+class AddSignonUsersToMiniEnvironment < ActiveRecord::Migration[5.1]
+ def change
+ add_column :mini_environments, :signon_users, :jsonb
+ end
+end