DEV: Update core model annotations

DEV: Update core model annotations

Generated using bin/rake annotate:clean

diff --git a/app/models/category.rb b/app/models/category.rb
index 86ba876..73e8f6e 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -1026,7 +1026,7 @@ end
 #  min_tags_from_required_group              :integer          default(1), not null
 #  read_only_banner                          :string
 #  default_list_filter                       :string(20)       default("all")
-#  allow_unlimited_owner_edits_on_first_post :boolean          default(FALSE)
+#  allow_unlimited_owner_edits_on_first_post :boolean          default(FALSE), not null
 #
 # Indexes
 #
diff --git a/app/models/directory_column.rb b/app/models/directory_column.rb
index 8b73960..aaeadbf 100644
--- a/app/models/directory_column.rb
+++ b/app/models/directory_column.rb
@@ -50,3 +50,22 @@ class DirectoryColumn < ActiveRecord::Base
     end
   end
 end
+
+# == Schema Information
+#
+# Table name: directory_columns
+#
+#  id                 :bigint           not null, primary key
+#  name               :string
+#  automatic_position :integer
+#  icon               :string
+#  user_field_id      :integer
+#  enabled            :boolean          not null
+#  position           :integer          not null
+#  created_at         :datetime
+#  type               :integer          default("automatic"), not null
+#
+# Indexes
+#
+#  directory_column_index  (enabled,position,user_field_id)
+#
diff --git a/app/models/do_not_disturb_timing.rb b/app/models/do_not_disturb_timing.rb
index 38119c5..a9a4d2c 100644
--- a/app/models/do_not_disturb_timing.rb
+++ b/app/models/do_not_disturb_timing.rb
@@ -11,3 +11,21 @@ class DoNotDisturbTiming < ActiveRecord::Base
     end
   end
 end
+
+# == Schema Information
+#
+# Table name: do_not_disturb_timings
+#
+#  id        :bigint           not null, primary key
+#  user_id   :integer          not null
+#  starts_at :datetime         not null
+#  ends_at   :datetime         not null
+#  scheduled :boolean          default(FALSE)
+#
+# Indexes
+#
+#  index_do_not_disturb_timings_on_ends_at    (ends_at)
+#  index_do_not_disturb_timings_on_scheduled  (scheduled)
+#  index_do_not_disturb_timings_on_starts_at  (starts_at)
+#  index_do_not_disturb_timings_on_user_id    (user_id)
+#
diff --git a/app/models/ignored_user.rb b/app/models/ignored_user.rb
index 3a334e8..5794864 100644
--- a/app/models/ignored_user.rb
+++ b/app/models/ignored_user.rb
@@ -17,7 +17,7 @@ end
 #  created_at      :datetime         not null
 #  updated_at      :datetime         not null
 #  summarized_at   :datetime
-#  expiring_at     :datetime
+#  expiring_at     :datetime         not null
 #
 # Indexes
 #
diff --git a/app/models/incoming_email.rb b/app/models/incoming_email.rb
index 0eec96f..b33ae19 100644
--- a/app/models/incoming_email.rb
+++ b/app/models/incoming_email.rb
@@ -109,6 +109,7 @@ end
 #  imap_uid          :integer
 #  imap_sync         :boolean
 #  imap_group_id     :bigint
+#  imap_missing      :boolean          default(FALSE), not null
 #  created_via       :integer          default(0), not null
 #
 # Indexes
diff --git a/app/models/invite.rb b/app/models/invite.rb
index f5694b9..704a62f 100644
--- a/app/models/invite.rb
+++ b/app/models/invite.rb
@@ -290,6 +290,7 @@ end
 #  max_redemptions_allowed :integer          default(1), not null
 #  redemption_count        :integer          default(0), not null
 #  expires_at              :datetime         not null
+#  email_token             :string
 #
 # Indexes
 #
diff --git a/app/models/post_custom_field.rb b/app/models/post_custom_field.rb
index 1f909c3..1cfeabe 100644
--- a/app/models/post_custom_field.rb
+++ b/app/models/post_custom_field.rb
@@ -19,8 +19,7 @@ end
 #
 #  idx_post_custom_fields_akismet                (post_id) WHERE (((name)::text = 'AKISMET_STATE'::text) AND (value = 'needs_review'::text))
 #  index_post_custom_fields_on_name_and_value    (name, "left"(value, 200))
-#  index_post_custom_fields_on_notice_args       (post_id) UNIQUE WHERE ((name)::text = 'notice_args'::text)
-#  index_post_custom_fields_on_notice_type       (post_id) UNIQUE WHERE ((name)::text = 'notice_type'::text)
+#  index_post_custom_fields_on_notice            (post_id) UNIQUE WHERE ((name)::text = 'notice'::text)
 #  index_post_custom_fields_on_post_id           (post_id) UNIQUE WHERE ((name)::text = 'missing uploads'::text)
 #  index_post_custom_fields_on_post_id_and_name  (post_id,name)
 #  index_post_id_where_missing_uploads_ignored   (post_id) UNIQUE WHERE ((name)::text = 'missing uploads ignored'::text)
diff --git a/app/models/push_subscription.rb b/app/models/push_subscription.rb
index dffdab1..1797cbe 100644
--- a/app/models/push_subscription.rb
+++ b/app/models/push_subscription.rb
@@ -12,11 +12,11 @@ end
 #
 # Table name: push_subscriptions
 #
-#  id            :bigint           not null, primary key
-#  user_id       :integer          not null
-#  data          :string           not null
-#  created_at    :datetime         not null
-#  updated_at    :datetime         not null
-#  error_count   :integer          default(0), not null
+#  id             :bigint           not null, primary key
+#  user_id        :integer          not null
+#  data           :string           not null
+#  created_at     :datetime         not null
+#  updated_at     :datetime         not null
+#  error_count    :integer          default(0), not null
 #  first_error_at :datetime
 #
diff --git a/app/models/reviewable_flagged_post.rb b/app/models/reviewable_flagged_post.rb
index f2971e7..3795f05 100644
--- a/app/models/reviewable_flagged_post.rb
+++ b/app/models/reviewable_flagged_post.rb
@@ -352,6 +352,8 @@ end
 #  latest_score            :datetime
 #  created_at              :datetime         not null
 #  updated_at              :datetime         not null
+#  force_review            :boolean          default(FALSE), not null
+#  reject_reason           :text
 #
 # Indexes
 #
diff --git a/app/models/reviewable_post.rb b/app/models/reviewable_post.rb
index 8dbb065..1ea91fe 100644
--- a/app/models/reviewable_post.rb
+++ b/app/models/reviewable_post.rb
@@ -109,3 +109,39 @@ class ReviewablePost < Reviewable
     end
   end
 end
+
+# == Schema Information
+#
+# Table name: reviewables
+#
+#  id                      :bigint           not null, primary key
+#  type                    :string           not null
+#  status                  :integer          default(0), not null
+#  created_by_id           :integer          not null
+#  reviewable_by_moderator :boolean          default(FALSE), not null
+#  reviewable_by_group_id  :integer
+#  category_id             :integer
+#  topic_id                :integer
+#  score                   :float            default(0.0), not null
+#  potential_spam          :boolean          default(FALSE), not null
+#  target_id               :integer
+#  target_type             :string
+#  target_created_by_id    :integer
+#  payload                 :json
+#  version                 :integer          default(0), not null
+#  latest_score            :datetime
+#  created_at              :datetime         not null
+#  updated_at              :datetime         not null
+#  force_review            :boolean          default(FALSE), not null
+#  reject_reason           :text
+#
+# 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)
+#  index_reviewables_on_target_id_where_post_type_eq_post      (target_id) WHERE ((target_type)::text = 'Post'::text)
+#  index_reviewables_on_topic_id_and_status_and_created_by_id  (topic_id,status,created_by_id)
+#  index_reviewables_on_type_and_target_id                     (type,target_id) UNIQUE
+#
diff --git a/app/models/reviewable_queued_post.rb b/app/models/reviewable_queued_post.rb

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

GitHub sha: 4b55b59931b6c7ba786b2967e87c1137a2325d7b

This commit appears in #13636 which was approved by CvX. It was merged by davidtaylorhq.