From 45ca83328d5edf959beca3477b378b23cfb595a3 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 15 Jul 2014 11:29:44 +1000 Subject: [PATCH] Annotate --- app/models/badge.rb | 1 + app/models/category.rb | 1 + app/models/invite.rb | 2 +- app/models/post.rb | 1 + app/models/topic_link.rb | 1 + app/models/user_badge.rb | 3 ++- app/models/user_stat.rb | 1 + 7 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/models/badge.rb b/app/models/badge.rb index 9eff812bb6d..3c31fc5ac29 100644 --- a/app/models/badge.rb +++ b/app/models/badge.rb @@ -177,6 +177,7 @@ end # listable :boolean default(TRUE) # target_posts :boolean default(FALSE) # query :text +# enabled :boolean default(TRUE), not null # # Indexes # diff --git a/app/models/category.rb b/app/models/category.rb index 1c1052a7429..509a090b49c 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -361,6 +361,7 @@ end # posts_day :integer default(0) # logo_url :string(255) # background_url :string(255) +# allow_badges :boolean default(TRUE), not null # # Indexes # diff --git a/app/models/invite.rb b/app/models/invite.rb index 1f475a87a10..86c24d23121 100644 --- a/app/models/invite.rb +++ b/app/models/invite.rb @@ -192,7 +192,7 @@ end # # id :integer not null, primary key # invite_key :string(32) not null -# email :string(255) +# email :string(255) not null # invited_by_id :integer not null # user_id :integer # redeemed_at :datetime diff --git a/app/models/post.rb b/app/models/post.rb index 2cb112279c5..e4d0507e959 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -589,6 +589,7 @@ end # baked_at :datetime # baked_version :integer # hidden_at :datetime +# self_edits :integer default(0), not null # # Indexes # diff --git a/app/models/topic_link.rb b/app/models/topic_link.rb index 50f9253c0eb..a2270f39e9f 100644 --- a/app/models/topic_link.rb +++ b/app/models/topic_link.rb @@ -227,6 +227,7 @@ end # link_post_id :integer # title :string(255) # crawled_at :datetime +# quote :boolean default(FALSE), not null # # Indexes # diff --git a/app/models/user_badge.rb b/app/models/user_badge.rb index 3d5e3bc1421..61cd45436af 100644 --- a/app/models/user_badge.rb +++ b/app/models/user_badge.rb @@ -44,5 +44,6 @@ end # # Indexes # -# index_user_badges_on_badge_id_and_user_id (badge_id,user_id) +# index_user_badges_on_badge_id_and_user_id (badge_id,user_id) +# index_user_badges_on_badge_id_and_user_id_and_post_id (badge_id,user_id,post_id) UNIQUE # diff --git a/app/models/user_stat.rb b/app/models/user_stat.rb index cfa3f3a7cce..76461d4c8ba 100644 --- a/app/models/user_stat.rb +++ b/app/models/user_stat.rb @@ -93,4 +93,5 @@ end # likes_received :integer default(0), not null # topic_reply_count :integer default(0), not null # new_since :datetime not null +# read_faq :datetime #