about summary refs log tree commit diff
path: root/app
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 /app
parent95c8232109f5e59273de48858ede7fbe7ce63d58 (diff)
Change user_id column non-nullable (#6435)
Diffstat (limited to 'app')
-rw-r--r--app/models/invite.rb2
-rw-r--r--app/models/web/setting.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/invite.rb b/app/models/invite.rb
index b87a3b722..4ba5432d2 100644
--- a/app/models/invite.rb
+++ b/app/models/invite.rb
@@ -4,7 +4,7 @@
 # Table name: invites
 #
 #  id         :integer          not null, primary key
-#  user_id    :integer
+#  user_id    :integer          not null
 #  code       :string           default(""), not null
 #  expires_at :datetime
 #  max_uses   :integer
diff --git a/app/models/web/setting.rb b/app/models/web/setting.rb
index 12b9d1226..0a5129d17 100644
--- a/app/models/web/setting.rb
+++ b/app/models/web/setting.rb
@@ -7,7 +7,7 @@
 #  data       :json
 #  created_at :datetime         not null
 #  updated_at :datetime         not null
-#  user_id    :integer
+#  user_id    :integer          not null
 #
 
 class Web::Setting < ApplicationRecord