FIX: Previous annotations were broken

approved

#1

FIX: Previous annotations were broken

diff --git a/app/models/badge.rb b/app/models/badge.rb
index 3f559a9..117f27c 100644
--- a/app/models/badge.rb
+++ b/app/models/badge.rb
@@ -252,7 +252,7 @@ end
 # Table name: badges
 #
 #  id                :integer          not null, primary key
-#  name              :string(255)      not null
+#  name              :string           not null
 #  description       :text
 #  badge_type_id     :integer          not null
 #  grant_count       :integer          default(0), not null
@@ -260,7 +260,7 @@ end
 #  updated_at        :datetime         not null
 #  allow_title       :boolean          default(FALSE), not null
 #  multiple_grant    :boolean          default(FALSE), not null
-#  icon              :string(255)      default("fa-certificate")
+#  icon              :string           default("fa-certificate")
 #  listable          :boolean          default(TRUE)
 #  target_posts      :boolean          default(FALSE)
 #  query             :text
@@ -275,5 +275,6 @@ end
 #
 # Indexes
 #
-#  index_badges_on_name  (name) UNIQUE
+#  index_badges_on_badge_type_id  (badge_type_id)
+#  index_badges_on_name           (name) UNIQUE
 #
diff --git a/app/models/badge_grouping.rb b/app/models/badge_grouping.rb
index f1201e7..4fdcef6 100644
--- a/app/models/badge_grouping.rb
+++ b/app/models/badge_grouping.rb
@@ -22,7 +22,7 @@ end
 # Table name: badge_groupings
 #
 #  id          :integer          not null, primary key
-#  name        :string(255)      not null
+#  name        :string           not null
 #  description :text
 #  position    :integer          not null
 #  created_at  :datetime         not null
diff --git a/app/models/badge_type.rb b/app/models/badge_type.rb
index 4648e3a..b1d6e91 100644
--- a/app/models/badge_type.rb
+++ b/app/models/badge_type.rb
@@ -12,7 +12,7 @@ end
 # Table name: badge_types
 #
 #  id         :integer          not null, primary key
-#  name       :string(255)      not null
+#  name       :string           not null
 #  created_at :datetime         not null
 #  updated_at :datetime         not null
 #
diff --git a/app/models/category.rb b/app/models/category.rb
index 117ea2f..45aac78 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -634,7 +634,7 @@ end
 #
 #  id                                :integer          not null, primary key
 #  name                              :string(50)       not null
-#  color                             :string(6)        default("AB9364"), not null
+#  color                             :string(6)        default("0088CC"), not null
 #  topic_id                          :integer
 #  topic_count                       :integer          default(0), not null
 #  created_at                        :datetime         not null
@@ -643,7 +643,7 @@ end
 #  topics_year                       :integer          default(0)
 #  topics_month                      :integer          default(0)
 #  topics_week                       :integer          default(0)
-#  slug                              :string(255)      not null
+#  slug                              :string           not null
 #  description                       :text
 #  text_color                        :string(6)        default("FFFFFF"), not null
 #  read_restricted                   :boolean          default(FALSE), not null
@@ -656,7 +656,7 @@ end
 #  posts_year                        :integer          default(0)
 #  posts_month                       :integer          default(0)
 #  posts_week                        :integer          default(0)
-#  email_in                          :string(255)
+#  email_in                          :string
 #  email_in_allow_strangers          :boolean          default(FALSE)
 #  topics_day                        :integer          default(0)
 #  posts_day                         :integer          default(0)
@@ -683,7 +683,7 @@ end
 #
 # Indexes
 #
-#  index_categories_on_email_in            (email_in) UNIQUE
-#  index_categories_on_forum_thread_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_topic_count  (topic_count)
+#  unique_index_categories_on_name  (COALESCE(parent_category_id, '-1'::integer), name) UNIQUE
 #
diff --git a/app/models/category_tag.rb b/app/models/category_tag.rb
index 20ab52d..507d13e 100644
--- a/app/models/category_tag.rb
+++ b/app/models/category_tag.rb
@@ -10,8 +10,8 @@ end
 #  id          :integer          not null, primary key
 #  category_id :integer          not null
 #  tag_id      :integer          not null
-#  created_at  :datetime
-#  updated_at  :datetime
+#  created_at  :datetime         not null
+#  updated_at  :datetime         not null
 #
 # Indexes
 #
diff --git a/app/models/category_tag_group.rb b/app/models/category_tag_group.rb
index 3c642d3..c262539 100644
--- a/app/models/category_tag_group.rb
+++ b/app/models/category_tag_group.rb
@@ -10,8 +10,8 @@ end
 #  id           :integer          not null, primary key
 #  category_id  :integer          not null
 #  tag_group_id :integer          not null
-#  created_at   :datetime
-#  updated_at   :datetime
+#  created_at   :datetime         not null
+#  updated_at   :datetime         not null
 #
 # Indexes
 #
diff --git a/app/models/child_theme.rb b/app/models/child_theme.rb
index f0d7e11..c281f87 100644
--- a/app/models/child_theme.rb
+++ b/app/models/child_theme.rb
@@ -23,8 +23,8 @@ end
 #  id              :integer          not null, primary key
 #  parent_theme_id :integer
 #  child_theme_id  :integer
-#  created_at      :datetime
-#  updated_at      :datetime
+#  created_at      :datetime         not null
+#  updated_at      :datetime         not null
 #
 # Indexes
 #
diff --git a/app/models/color_scheme.rb b/app/models/color_scheme.rb
index 07b9132..526b2a0 100644
--- a/app/models/color_scheme.rb
+++ b/app/models/color_scheme.rb
@@ -280,7 +280,7 @@ end
 # Table name: color_schemes
 #
 #  id             :integer          not null, primary key
-#  name           :string(255)      not null
+#  name           :string           not null
 #  version        :integer          default(1), not null
 #  created_at     :datetime         not null
 #  updated_at     :datetime         not null
diff --git a/app/models/color_scheme_color.rb b/app/models/color_scheme_color.rb
index 39a7b51..51e0c4a 100644
--- a/app/models/color_scheme_color.rb
+++ b/app/models/color_scheme_color.rb
@@ -9,8 +9,8 @@ end
 # Table name: color_scheme_colors
 #
 #  id              :integer          not null, primary key
-#  name            :string(255)      not null
-#  hex             :string(255)      not null
+#  name            :string           not null
+#  hex             :string           not null
 #  color_scheme_id :integer          not null
 #  created_at      :datetime         not null
 #  updated_at      :datetime         not null
diff --git a/app/models/draft.rb b/app/models/draft.rb
index 04e38f5..9905cbe 100644
--- a/app/models/draft.rb
+++ b/app/models/draft.rb
@@ -104,7 +104,7 @@ end
 #
 #  id         :integer          not null, primary key
 #  user_id    :integer          not null
-#  draft_key  :string(255)      not null
+#  draft_key  :string           not null
 #  data       :text             not null
 #  created_at :datetime         not null
 #  updated_at :datetime         not null
diff --git a/app/models/draft_sequence.rb b/app/models/draft_sequence.rb
index ba5c901..9629e84 100644
--- a/app/models/draft_sequence.rb
+++ b/app/models/draft_sequence.rb
@@ -33,7 +33,7 @@ end
 #
 #  id        :integer          not null, primary key
 #  user_id   :integer          not null
-#  draft_key :string(255)      not null
+#  draft_key :string           not null
 #  sequence  :integer          not null
 #
 # Indexes
diff --git a/app/models/email_log.rb b/app/models/email_log.rb
index ecb5d21..769436e 100644
--- a/app/models/email_log.rb
+++ b/app/models/email_log.rb
@@ -84,8 +84,8 @@ end
 # Table name: email_logs
 #

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

GitHub sha: 95f26399


#2