DEV: annotate models

DEV: annotate models

(also looks like renaming of bigint(8) -> bigint in annotate which seems fine)

diff --git a/app/models/category.rb b/app/models/category.rb
index a4cc14e..18a6c18 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -742,11 +742,13 @@ end
 #  navigate_to_first_post_after_read :boolean          default(FALSE), not null
 #  search_priority                   :integer          default(0)
 #  allow_global_tags                 :boolean          default(FALSE), not null
+#  reviewable_by_group_id            :integer
 #
 # Indexes
 #
-#  index_categories_on_email_in         (email_in) UNIQUE
-#  index_categories_on_search_priority  (search_priority)
-#  index_categories_on_topic_count      (topic_count)
-#  unique_index_categories_on_name      (COALESCE(parent_category_id, '-1'::integer), name) UNIQUE
+#  index_categories_on_email_in                (email_in) UNIQUE
+#  index_categories_on_reviewable_by_group_id  (reviewable_by_group_id)
+#  index_categories_on_search_priority         (search_priority)
+#  index_categories_on_topic_count             (topic_count)
+#  unique_index_categories_on_name             (COALESCE(parent_category_id, '-1'::integer), name) UNIQUE
 #
diff --git a/app/models/category_tag_stat.rb b/app/models/category_tag_stat.rb
index 2dc686c..f16e37e 100644
--- a/app/models/category_tag_stat.rb
+++ b/app/models/category_tag_stat.rb
@@ -66,9 +66,9 @@ end
 #
 # Table name: category_tag_stats
 #
-#  id          :bigint(8)        not null, primary key
-#  category_id :bigint(8)        not null
-#  tag_id      :bigint(8)        not null
+#  id          :bigint           not null, primary key
+#  category_id :bigint           not null
+#  tag_id      :bigint           not null
 #  topic_count :integer          default(0), not null
 #
 # Indexes
diff --git a/app/models/group_request.rb b/app/models/group_request.rb
index f6b731d..57aafb4 100644
--- a/app/models/group_request.rb
+++ b/app/models/group_request.rb
@@ -7,7 +7,7 @@ end
 #
 # Table name: group_requests
 #
-#  id         :bigint(8)        not null, primary key
+#  id         :bigint           not null, primary key
 #  group_id   :integer
 #  user_id    :integer
 #  reason     :text
diff --git a/app/models/ignored_user.rb b/app/models/ignored_user.rb
index 588a7a9..a0810b0 100644
--- a/app/models/ignored_user.rb
+++ b/app/models/ignored_user.rb
@@ -7,7 +7,7 @@ end
 #
 # Table name: ignored_users
 #
-#  id              :bigint(8)        not null, primary key
+#  id              :bigint           not null, primary key
 #  user_id         :integer          not null
 #  ignored_user_id :integer          not null
 #  created_at      :datetime         not null
diff --git a/app/models/javascript_cache.rb b/app/models/javascript_cache.rb
index cb850af..6efc44d 100644
--- a/app/models/javascript_cache.rb
+++ b/app/models/javascript_cache.rb
@@ -25,8 +25,8 @@ end
 #
 # Table name: javascript_caches
 #
-#  id             :bigint(8)        not null, primary key
-#  theme_field_id :bigint(8)        not null
+#  id             :bigint           not null, primary key
+#  theme_field_id :bigint           not null
 #  digest         :string
 #  content        :text             not null
 #  created_at     :datetime         not null
diff --git a/app/models/post_reply_key.rb b/app/models/post_reply_key.rb
index 3f1479f..b82ecea 100644
--- a/app/models/post_reply_key.rb
+++ b/app/models/post_reply_key.rb
@@ -21,7 +21,7 @@ end
 #
 # Table name: post_reply_keys
 #
-#  id         :bigint(8)        not null, primary key
+#  id         :bigint           not null, primary key
 #  user_id    :integer          not null
 #  post_id    :integer          not null
 #  reply_key  :uuid             not null
diff --git a/app/models/push_subscription.rb b/app/models/push_subscription.rb
index caa6855..0367e56 100644
--- a/app/models/push_subscription.rb
+++ b/app/models/push_subscription.rb
@@ -6,7 +6,7 @@ end
 #
 # Table name: push_subscriptions
 #
-#  id         :bigint(8)        not null, primary key
+#  id         :bigint           not null, primary key
 #  user_id    :integer          not null
 #  data       :string           not null
 #  created_at :datetime         not null
diff --git a/app/models/reviewable.rb b/app/models/reviewable.rb
index aaa5f18..3f32637 100644
--- a/app/models/reviewable.rb
+++ b/app/models/reviewable.rb
@@ -476,7 +476,7 @@ end
 #
 # Table name: reviewables
 #
-#  id                      :bigint(8)        not null, primary key
+#  id                      :bigint           not null, primary key
 #  type                    :string           not null
 #  status                  :integer          default(0), not null
 #  created_by_id           :integer          not null
@@ -498,6 +498,7 @@ end
 #
 # Indexes
 #
+#  index_reviewables_on_reviewable_by_group_id                 (reviewable_by_group_id)
 #  index_reviewables_on_status_and_created_at                  (status,created_at)
 #  index_reviewables_on_status_and_score                       (status,score)
 #  index_reviewables_on_status_and_type                        (status,type)
diff --git a/app/models/reviewable_flagged_post.rb b/app/models/reviewable_flagged_post.rb
index cf5829b..9cc622d 100644
--- a/app/models/reviewable_flagged_post.rb
+++ b/app/models/reviewable_flagged_post.rb
@@ -288,7 +288,7 @@ end
 #
 # Table name: reviewables
 #
-#  id                      :bigint(8)        not null, primary key
+#  id                      :bigint           not null, primary key
 #  type                    :string           not null
 #  status                  :integer          default(0), not null
 #  created_by_id           :integer          not null
@@ -310,6 +310,7 @@ end
 #
 # Indexes
 #
+#  index_reviewables_on_reviewable_by_group_id                 (reviewable_by_group_id)
 #  index_reviewables_on_status_and_created_at                  (status,created_at)
 #  index_reviewables_on_status_and_score                       (status,score)
 #  index_reviewables_on_status_and_type                        (status,type)
diff --git a/app/models/reviewable_history.rb b/app/models/reviewable_history.rb
index 1df79da..9159d86 100644
--- a/app/models/reviewable_history.rb
+++ b/app/models/reviewable_history.rb
@@ -16,7 +16,7 @@ end
 #
 # Table name: reviewable_histories
 #
-#  id                      :bigint(8)        not null, primary key
+#  id                      :bigint           not null, primary key
 #  reviewable_id           :integer          not null
 #  reviewable_history_type :integer          not null
 #  status                  :integer          not null
diff --git a/app/models/reviewable_queued_post.rb b/app/models/reviewable_queued_post.rb
index 2933dff..6380486 100644
--- a/app/models/reviewable_queued_post.rb
+++ b/app/models/reviewable_queued_post.rb
@@ -139,7 +139,7 @@ end
 #
 # Table name: reviewables
 #
-#  id                      :bigint(8)        not null, primary key
+#  id                      :bigint           not null, primary key
 #  type                    :string           not null
 #  status                  :integer          default(0), not null
 #  created_by_id           :integer          not null
@@ -161,6 +161,7 @@ end
 #
 # Indexes
 #
+#  index_reviewables_on_reviewable_by_group_id                 (reviewable_by_group_id)
 #  index_reviewables_on_status_and_created_at                  (status,created_at)
 #  index_reviewables_on_status_and_score                       (status,score)
 #  index_reviewables_on_status_and_type                        (status,type)
diff --git a/app/models/reviewable_score.rb b/app/models/reviewable_score.rb
index 144b5ac..1d3af75 100644
--- a/app/models/reviewable_score.rb
+++ b/app/models/reviewable_score.rb
@@ -74,7 +74,7 @@ end
 #
 # Table name: reviewable_scores
 #
-#  id                    :bigint(8)        not null, primary key
+#  id                    :bigint           not null, primary key
 #  reviewable_id         :integer          not null
 #  user_id               :integer          not null
 #  reviewable_score_type :integer          not null

[... diff too long, it was truncated ...]

GitHub sha: 3dc4ab90