about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-02-08 00:35:44 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-02-07 16:35:44 +0100
commit67f7ffa79270e3591478a95a1a083bfffa1fd218 (patch)
treedb12dacb409a23f12094ac7b68f42657eb5d8e5a /db/migrate
parent95c8232109f5e59273de48858ede7fbe7ce63d58 (diff)
Change user_id column non-nullable (#6435)
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180206000000_change_user_id_nonnullable.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20180206000000_change_user_id_nonnullable.rb b/db/migrate/20180206000000_change_user_id_nonnullable.rb
new file mode 100644
index 000000000..4eecb6154
--- /dev/null
+++ b/db/migrate/20180206000000_change_user_id_nonnullable.rb
@@ -0,0 +1,6 @@
+class ChangeUserIdNonnullable < ActiveRecord::Migration[5.1]
+  def change
+    change_column_null :invites, :user_id, false
+    change_column_null :web_settings, :user_id, false
+  end
+end