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-03-24 20:51:28 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-03-24 12:51:28 +0100
commitb2a4ffd3a91abc5030baf2ede97c0867924d8fbc (patch)
tree6755edc959aa310dd5e9e388e72eb6763f2ce3e6 /app
parentfa310695fa0b5fe76739232dd6acee81da6cd401 (diff)
Change columns in notifications nonnullable (#6764)
Diffstat (limited to 'app')
-rw-r--r--app/models/notification.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/notification.rb b/app/models/notification.rb
index 7f8dae5ec..be9964087 100644
--- a/app/models/notification.rb
+++ b/app/models/notification.rb
@@ -4,12 +4,12 @@
 # Table name: notifications
 #
 #  id              :integer          not null, primary key
-#  activity_id     :integer
-#  activity_type   :string
+#  activity_id     :integer          not null
+#  activity_type   :string           not null
 #  created_at      :datetime         not null
 #  updated_at      :datetime         not null
-#  account_id      :integer
-#  from_account_id :integer
+#  account_id      :integer          not null
+#  from_account_id :integer          not null
 #
 
 class Notification < ApplicationRecord