From 7271b9065511bc261e2f3a77a323fb7e34859748 Mon Sep 17 00:00:00 2001 From: Matt Van Horn Date: Wed, 22 May 2013 22:36:01 -0700 Subject: [PATCH] annotate topic model --- app/models/topic.rb | 51 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/app/models/topic.rb b/app/models/topic.rb index fdf606336cb..2fee8019fda 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -1,3 +1,54 @@ +# == Schema Information +# +# Table name: topics +# +# id :integer not null, primary key +# title :string(255) not null +# last_posted_at :datetime +# created_at :datetime not null +# updated_at :datetime not null +# views :integer default(0), not null +# posts_count :integer default(0), not null +# user_id :integer not null +# last_post_user_id :integer not null +# reply_count :integer default(0), not null +# featured_user1_id :integer +# featured_user2_id :integer +# featured_user3_id :integer +# avg_time :integer +# deleted_at :datetime +# highest_post_number :integer default(0), not null +# image_url :string(255) +# off_topic_count :integer default(0), not null +# like_count :integer default(0), not null +# incoming_link_count :integer default(0), not null +# bookmark_count :integer default(0), not null +# star_count :integer default(0), not null +# category_id :integer +# visible :boolean default(TRUE), not null +# moderator_posts_count :integer default(0), not null +# closed :boolean default(FALSE), not null +# archived :boolean default(FALSE), not null +# bumped_at :datetime not null +# has_best_of :boolean default(FALSE), not null +# meta_data :hstore +# vote_count :integer default(0), not null +# archetype :string(255) default("regular"), not null +# featured_user4_id :integer +# notify_moderators_count :integer default(0), not null +# spam_count :integer default(0), not null +# illegal_count :integer default(0), not null +# inappropriate_count :integer default(0), not null +# pinned_at :datetime +# score :float +# percent_rank :float default(1.0), not null +# notify_user_count :integer default(0), not null +# subtype :string(255) +# slug :string(255) +# auto_close_at :datetime +# auto_close_user_id :integer +# + require_dependency 'slug' require_dependency 'avatar_lookup' require_dependency 'topic_view'