about summary refs log tree commit diff
path: root/app/models/web
diff options
context:
space:
mode:
authorDaniel Hunsaker <danhunsaker@gmail.com>2017-11-12 08:18:50 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-11-12 16:18:50 +0100
commitcf7e8409909e1ea02dff9056133449d6cbd34d72 (patch)
treed8d77285d0c5413d8b6fa3c9fc30518c2f96c6ac /app/models/web
parent252d0fe020c919bf53a42a96bffbfd342563250a (diff)
Update model annotations to use BIGINT for IDs (#5461)
All the migrations have been updated to use BIGINTs for ID fields in the DB, but ActiveRecord needs to be told to treat those values as BIGINT as well. This PR does that.
Diffstat (limited to 'app/models/web')
-rw-r--r--app/models/web/push_subscription.rb2
-rw-r--r--app/models/web/setting.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/web/push_subscription.rb b/app/models/web/push_subscription.rb
index cb15dfa37..da67e7665 100644
--- a/app/models/web/push_subscription.rb
+++ b/app/models/web/push_subscription.rb
@@ -3,7 +3,7 @@
 #
 # Table name: web_push_subscriptions
 #
-#  id         :integer          not null, primary key
+#  id         :bigint           not null, primary key
 #  endpoint   :string           not null
 #  key_p256dh :string           not null
 #  key_auth   :string           not null
diff --git a/app/models/web/setting.rb b/app/models/web/setting.rb
index 1b0bfb2b7..6d08c4d35 100644
--- a/app/models/web/setting.rb
+++ b/app/models/web/setting.rb
@@ -6,8 +6,8 @@
 #  data       :json
 #  created_at :datetime         not null
 #  updated_at :datetime         not null
-#  id         :integer          not null, primary key
-#  user_id    :integer
+#  id         :bigint           not null, primary key
+#  user_id    :bigint
 #
 
 class Web::Setting < ApplicationRecord