mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
annotate models
This commit is contained in:
parent
cab5dd09d3
commit
32c681c96b
44 changed files with 166 additions and 133 deletions
|
@ -368,7 +368,7 @@ end
|
||||||
# Table name: badges
|
# Table name: badges
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# description :text
|
# description :text
|
||||||
# badge_type_id :integer not null
|
# badge_type_id :integer not null
|
||||||
# grant_count :integer default(0), not null
|
# grant_count :integer default(0), not null
|
||||||
|
@ -376,7 +376,7 @@ end
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# allow_title :boolean default(FALSE), not null
|
# allow_title :boolean default(FALSE), not null
|
||||||
# multiple_grant :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)
|
# listable :boolean default(TRUE)
|
||||||
# target_posts :boolean default(FALSE)
|
# target_posts :boolean default(FALSE)
|
||||||
# query :text
|
# query :text
|
||||||
|
@ -391,5 +391,6 @@ end
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
# index_badges_on_name (name) UNIQUE
|
# index_badges_on_badge_type_id (badge_type_id)
|
||||||
|
# index_badges_on_name (name) UNIQUE
|
||||||
#
|
#
|
||||||
|
|
|
@ -22,7 +22,7 @@ end
|
||||||
# Table name: badge_groupings
|
# Table name: badge_groupings
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# description :text
|
# description :text
|
||||||
# position :integer not null
|
# position :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
|
|
|
@ -13,7 +13,7 @@ end
|
||||||
# Table name: badge_types
|
# Table name: badge_types
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -452,7 +452,7 @@ end
|
||||||
# topics_year :integer default(0)
|
# topics_year :integer default(0)
|
||||||
# topics_month :integer default(0)
|
# topics_month :integer default(0)
|
||||||
# topics_week :integer default(0)
|
# topics_week :integer default(0)
|
||||||
# slug :string(255) not null
|
# slug :string not null
|
||||||
# description :text
|
# description :text
|
||||||
# text_color :string(6) default("FFFFFF"), not null
|
# text_color :string(6) default("FFFFFF"), not null
|
||||||
# read_restricted :boolean default(FALSE), not null
|
# read_restricted :boolean default(FALSE), not null
|
||||||
|
@ -465,17 +465,18 @@ end
|
||||||
# posts_year :integer default(0)
|
# posts_year :integer default(0)
|
||||||
# posts_month :integer default(0)
|
# posts_month :integer default(0)
|
||||||
# posts_week :integer default(0)
|
# posts_week :integer default(0)
|
||||||
# email_in :string(255)
|
# email_in :string
|
||||||
# email_in_allow_strangers :boolean default(FALSE)
|
# email_in_allow_strangers :boolean default(FALSE)
|
||||||
# topics_day :integer default(0)
|
# topics_day :integer default(0)
|
||||||
# posts_day :integer default(0)
|
# posts_day :integer default(0)
|
||||||
# logo_url :string(255)
|
# logo_url :string
|
||||||
# background_url :string(255)
|
# background_url :string
|
||||||
# allow_badges :boolean default(TRUE), not null
|
# allow_badges :boolean default(TRUE), not null
|
||||||
# name_lower :string(50) not null
|
# name_lower :string(50) not null
|
||||||
# auto_close_based_on_last_post :boolean default(FALSE)
|
# auto_close_based_on_last_post :boolean default(FALSE)
|
||||||
# topic_template :text
|
# topic_template :text
|
||||||
# suppress_from_homepage :boolean default(FALSE)
|
# suppress_from_homepage :boolean default(FALSE)
|
||||||
|
# contains_messages :boolean
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -126,7 +126,7 @@ end
|
||||||
# Table name: color_schemes
|
# Table name: color_schemes
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# enabled :boolean default(FALSE), not null
|
# enabled :boolean default(FALSE), not null
|
||||||
# versioned_id :integer
|
# versioned_id :integer
|
||||||
# version :integer default(1), not null
|
# version :integer default(1), not null
|
||||||
|
|
|
@ -9,8 +9,8 @@ end
|
||||||
# Table name: color_scheme_colors
|
# Table name: color_scheme_colors
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# hex :string(255) not null
|
# hex :string not null
|
||||||
# color_scheme_id :integer not null
|
# color_scheme_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
|
|
@ -59,7 +59,7 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# draft_key :string(255) not null
|
# draft_key :string not null
|
||||||
# data :text not null
|
# data :text not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
|
|
@ -34,7 +34,7 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# draft_key :string(255) not null
|
# draft_key :string not null
|
||||||
# sequence :integer not null
|
# sequence :integer not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
|
|
|
@ -38,8 +38,8 @@ end
|
||||||
# Table name: email_logs
|
# Table name: email_logs
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# to_address :string(255) not null
|
# to_address :string not null
|
||||||
# email_type :string(255) not null
|
# email_type :string not null
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
@ -47,7 +47,7 @@ end
|
||||||
# post_id :integer
|
# post_id :integer
|
||||||
# topic_id :integer
|
# topic_id :integer
|
||||||
# skipped :boolean default(FALSE)
|
# skipped :boolean default(FALSE)
|
||||||
# skipped_reason :string(255)
|
# skipped_reason :string
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -78,8 +78,8 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# email :string(255) not null
|
# email :string not null
|
||||||
# token :string(255) not null
|
# token :string not null
|
||||||
# confirmed :boolean default(FALSE), not null
|
# confirmed :boolean default(FALSE), not null
|
||||||
# expired :boolean default(FALSE), not null
|
# expired :boolean default(FALSE), not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
|
|
|
@ -36,7 +36,7 @@ end
|
||||||
# Table name: embeddable_hosts
|
# Table name: embeddable_hosts
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# host :string(255) not null
|
# host :string not null
|
||||||
# category_id :integer not null
|
# category_id :integer not null
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
|
|
|
@ -9,13 +9,13 @@ end
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# facebook_user_id :integer not null
|
# facebook_user_id :integer not null
|
||||||
# username :string(255)
|
# username :string
|
||||||
# first_name :string(255)
|
# first_name :string
|
||||||
# last_name :string(255)
|
# last_name :string
|
||||||
# email :string(255)
|
# email :string
|
||||||
# gender :string(255)
|
# gender :string
|
||||||
# name :string(255)
|
# name :string
|
||||||
# link :string(255)
|
# link :string
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -8,7 +8,7 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# screen_name :string(255) not null
|
# screen_name :string not null
|
||||||
# github_user_id :integer not null
|
# github_user_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
|
|
@ -8,15 +8,15 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# google_user_id :string(255) not null
|
# google_user_id :string not null
|
||||||
# first_name :string(255)
|
# first_name :string
|
||||||
# last_name :string(255)
|
# last_name :string
|
||||||
# email :string(255)
|
# email :string
|
||||||
# gender :string(255)
|
# gender :string
|
||||||
# name :string(255)
|
# name :string
|
||||||
# link :string(255)
|
# link :string
|
||||||
# profile_link :string(255)
|
# profile_link :string
|
||||||
# picture :string(255)
|
# picture :string
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -455,7 +455,7 @@ end
|
||||||
# Table name: groups
|
# Table name: groups
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# automatic :boolean default(FALSE), not null
|
# automatic :boolean default(FALSE), not null
|
||||||
|
@ -465,7 +465,7 @@ end
|
||||||
# automatic_membership_email_domains :text
|
# automatic_membership_email_domains :text
|
||||||
# automatic_membership_retroactive :boolean default(FALSE)
|
# automatic_membership_retroactive :boolean default(FALSE)
|
||||||
# primary_group :boolean default(FALSE), not null
|
# primary_group :boolean default(FALSE), not null
|
||||||
# title :string(255)
|
# title :string
|
||||||
# grant_trust_level :integer
|
# grant_trust_level :integer
|
||||||
# incoming_email :string
|
# incoming_email :string
|
||||||
# has_messages :boolean default(FALSE), not null
|
# has_messages :boolean default(FALSE), not null
|
||||||
|
|
|
@ -252,7 +252,7 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# invite_key :string(32) not null
|
# invite_key :string(32) not null
|
||||||
# email :string(255)
|
# email :string
|
||||||
# invited_by_id :integer not null
|
# invited_by_id :integer not null
|
||||||
# user_id :integer
|
# user_id :integer
|
||||||
# redeemed_at :datetime
|
# redeemed_at :datetime
|
||||||
|
|
|
@ -203,5 +203,6 @@ end
|
||||||
# idx_notifications_speedup_unread_count (user_id,notification_type)
|
# idx_notifications_speedup_unread_count (user_id,notification_type)
|
||||||
# index_notifications_on_post_action_id (post_action_id)
|
# index_notifications_on_post_action_id (post_action_id)
|
||||||
# index_notifications_on_user_id_and_created_at (user_id,created_at)
|
# index_notifications_on_user_id_and_created_at (user_id,created_at)
|
||||||
|
# index_notifications_on_user_id_and_id (user_id,id) UNIQUE
|
||||||
# index_notifications_on_user_id_and_topic_id_and_post_number (user_id,topic_id,post_number)
|
# index_notifications_on_user_id_and_topic_id_and_post_number (user_id,topic_id,post_number)
|
||||||
#
|
#
|
||||||
|
|
|
@ -9,10 +9,10 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# uid :string(255) not null
|
# uid :string not null
|
||||||
# provider :string(255) not null
|
# provider :string not null
|
||||||
# email :string(255)
|
# email :string
|
||||||
# name :string(255)
|
# name :string
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -236,7 +236,7 @@ end
|
||||||
# width :integer not null
|
# width :integer not null
|
||||||
# height :integer not null
|
# height :integer not null
|
||||||
# upload_id :integer not null
|
# upload_id :integer not null
|
||||||
# url :string(255) not null
|
# url :string not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,9 +6,9 @@ end
|
||||||
# Table name: plugin_store_rows
|
# Table name: plugin_store_rows
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# plugin_name :string(255) not null
|
# plugin_name :string not null
|
||||||
# key :string(255) not null
|
# key :string not null
|
||||||
# type_name :string(255) not null
|
# type_name :string not null
|
||||||
# value :text
|
# value :text
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
|
|
|
@ -653,7 +653,7 @@ end
|
||||||
# notify_user_count :integer default(0), not null
|
# notify_user_count :integer default(0), not null
|
||||||
# like_score :integer default(0), not null
|
# like_score :integer default(0), not null
|
||||||
# deleted_by_id :integer
|
# deleted_by_id :integer
|
||||||
# edit_reason :string(255)
|
# edit_reason :string
|
||||||
# word_count :integer
|
# word_count :integer
|
||||||
# version :integer default(1), not null
|
# version :integer default(1), not null
|
||||||
# cook_method :integer default(1), not null
|
# cook_method :integer default(1), not null
|
||||||
|
@ -666,7 +666,7 @@ end
|
||||||
# via_email :boolean default(FALSE), not null
|
# via_email :boolean default(FALSE), not null
|
||||||
# raw_email :text
|
# raw_email :text
|
||||||
# public_version :integer default(1), not null
|
# public_version :integer default(1), not null
|
||||||
# action_code :string(255)
|
# action_code :string
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -11,8 +11,8 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# post_id :integer
|
# post_id :integer
|
||||||
# key :string(255)
|
# key :string
|
||||||
# value :string(255)
|
# value :string
|
||||||
# extra :text
|
# extra :text
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
|
|
@ -11,7 +11,7 @@ end
|
||||||
# post_id :integer not null, primary key
|
# post_id :integer not null, primary key
|
||||||
# search_data :tsvector
|
# search_data :tsvector
|
||||||
# raw_data :text
|
# raw_data :text
|
||||||
# locale :string(255)
|
# locale :string
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -114,7 +114,7 @@ end
|
||||||
# Table name: queued_posts
|
# Table name: queued_posts
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# queue :string(255) not null
|
# queue :string not null
|
||||||
# state :integer not null
|
# state :integer not null
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# raw :text not null
|
# raw :text not null
|
||||||
|
|
|
@ -67,7 +67,7 @@ end
|
||||||
# Table name: screened_emails
|
# Table name: screened_emails
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# email :string(255) not null
|
# email :string not null
|
||||||
# action_type :integer not null
|
# action_type :integer not null
|
||||||
# match_count :integer default(0), not null
|
# match_count :integer default(0), not null
|
||||||
# last_match_at :datetime
|
# last_match_at :datetime
|
||||||
|
|
|
@ -42,8 +42,8 @@ end
|
||||||
# Table name: screened_urls
|
# Table name: screened_urls
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# url :string(255) not null
|
# url :string not null
|
||||||
# domain :string(255) not null
|
# domain :string not null
|
||||||
# action_type :integer not null
|
# action_type :integer not null
|
||||||
# match_count :integer default(0), not null
|
# match_count :integer default(0), not null
|
||||||
# last_match_at :datetime
|
# last_match_at :datetime
|
||||||
|
|
|
@ -8,14 +8,14 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# external_id :string(255) not null
|
# external_id :string not null
|
||||||
# last_payload :text not null
|
# last_payload :text not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# external_username :string(255)
|
# external_username :string
|
||||||
# external_email :string(255)
|
# external_email :string
|
||||||
# external_name :string(255)
|
# external_name :string
|
||||||
# external_avatar_url :string(255)
|
# external_avatar_url :string
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -217,32 +217,32 @@ end
|
||||||
# Table name: site_customizations
|
# Table name: site_customizations
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# stylesheet :text
|
# stylesheet :text
|
||||||
# header :text
|
# header :text
|
||||||
# header_baked :text
|
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# enabled :boolean not null
|
# enabled :boolean not null
|
||||||
# key :string(255) not null
|
# key :string not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# stylesheet_baked :text default(""), not null
|
# stylesheet_baked :text default(""), not null
|
||||||
# mobile_stylesheet :text
|
# mobile_stylesheet :text
|
||||||
|
# mobile_header :text
|
||||||
# mobile_stylesheet_baked :text
|
# mobile_stylesheet_baked :text
|
||||||
# footer :text
|
# footer :text
|
||||||
# footer_baked :text
|
|
||||||
# mobile_header :text
|
|
||||||
# mobile_footer :text
|
# mobile_footer :text
|
||||||
# mobile_header_baked :text
|
|
||||||
# mobile_footer_baked :text
|
|
||||||
# head_tag :text
|
# head_tag :text
|
||||||
# body_tag :text
|
# body_tag :text
|
||||||
# head_tag_baked :text
|
|
||||||
# body_tag_baked :text
|
|
||||||
# top :text
|
# top :text
|
||||||
# mobile_top :text
|
# mobile_top :text
|
||||||
# embedded_css :text
|
# embedded_css :text
|
||||||
# embedded_css_baked :text
|
# embedded_css_baked :text
|
||||||
|
# head_tag_baked :text
|
||||||
|
# body_tag_baked :text
|
||||||
|
# header_baked :text
|
||||||
|
# mobile_header_baked :text
|
||||||
|
# footer_baked :text
|
||||||
|
# mobile_footer_baked :text
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -112,7 +112,7 @@ end
|
||||||
# Table name: site_settings
|
# Table name: site_settings
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# data_type :integer not null
|
# data_type :integer not null
|
||||||
# value :text
|
# value :text
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
|
|
|
@ -34,8 +34,8 @@ end
|
||||||
# Table name: stylesheet_cache
|
# Table name: stylesheet_cache
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# target :string(255) not null
|
# target :string not null
|
||||||
# digest :string(255) not null
|
# digest :string not null
|
||||||
# content :text not null
|
# content :text not null
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
|
|
|
@ -1051,7 +1051,7 @@ end
|
||||||
# Table name: topics
|
# Table name: topics
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# title :string(255) not null
|
# title :string not null
|
||||||
# last_posted_at :datetime
|
# last_posted_at :datetime
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
@ -1066,7 +1066,7 @@ end
|
||||||
# avg_time :integer
|
# avg_time :integer
|
||||||
# deleted_at :datetime
|
# deleted_at :datetime
|
||||||
# highest_post_number :integer default(0), not null
|
# highest_post_number :integer default(0), not null
|
||||||
# image_url :string(255)
|
# image_url :string
|
||||||
# off_topic_count :integer default(0), not null
|
# off_topic_count :integer default(0), not null
|
||||||
# like_count :integer default(0), not null
|
# like_count :integer default(0), not null
|
||||||
# incoming_link_count :integer default(0), not null
|
# incoming_link_count :integer default(0), not null
|
||||||
|
@ -1079,7 +1079,7 @@ end
|
||||||
# bumped_at :datetime not null
|
# bumped_at :datetime not null
|
||||||
# has_summary :boolean default(FALSE), not null
|
# has_summary :boolean default(FALSE), not null
|
||||||
# vote_count :integer default(0), not null
|
# vote_count :integer default(0), not null
|
||||||
# archetype :string(255) default("regular"), not null
|
# archetype :string default("regular"), not null
|
||||||
# featured_user4_id :integer
|
# featured_user4_id :integer
|
||||||
# notify_moderators_count :integer default(0), not null
|
# notify_moderators_count :integer default(0), not null
|
||||||
# spam_count :integer default(0), not null
|
# spam_count :integer default(0), not null
|
||||||
|
@ -1089,8 +1089,8 @@ end
|
||||||
# score :float
|
# score :float
|
||||||
# percent_rank :float default(1.0), not null
|
# percent_rank :float default(1.0), not null
|
||||||
# notify_user_count :integer default(0), not null
|
# notify_user_count :integer default(0), not null
|
||||||
# subtype :string(255)
|
# subtype :string
|
||||||
# slug :string(255)
|
# slug :string
|
||||||
# auto_close_at :datetime
|
# auto_close_at :datetime
|
||||||
# auto_close_user_id :integer
|
# auto_close_user_id :integer
|
||||||
# auto_close_started_at :datetime
|
# auto_close_started_at :datetime
|
||||||
|
|
|
@ -231,7 +231,7 @@ end
|
||||||
# reflection :boolean default(FALSE)
|
# reflection :boolean default(FALSE)
|
||||||
# clicks :integer default(0), not null
|
# clicks :integer default(0), not null
|
||||||
# link_post_id :integer
|
# link_post_id :integer
|
||||||
# title :string(255)
|
# title :string
|
||||||
# crawled_at :datetime
|
# crawled_at :datetime
|
||||||
# quote :boolean default(FALSE), not null
|
# quote :boolean default(FALSE), not null
|
||||||
#
|
#
|
||||||
|
|
|
@ -8,7 +8,7 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# screen_name :string(255) not null
|
# screen_name :string not null
|
||||||
# twitter_user_id :integer not null
|
# twitter_user_id :integer not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
|
|
@ -257,11 +257,11 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# original_filename :string(255) not null
|
# original_filename :string not null
|
||||||
# filesize :integer not null
|
# filesize :integer not null
|
||||||
# width :integer
|
# width :integer
|
||||||
# height :integer
|
# height :integer
|
||||||
# url :string(255) not null
|
# url :string not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# sha1 :string(40)
|
# sha1 :string(40)
|
||||||
|
|
|
@ -956,42 +956,42 @@ end
|
||||||
#
|
#
|
||||||
# Table name: users
|
# Table name: users
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# username :string(60) not null
|
# username :string(60) not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# name :string(255)
|
# name :string
|
||||||
# seen_notification_id :integer default(0), not null
|
# seen_notification_id :integer default(0), not null
|
||||||
# last_posted_at :datetime
|
# last_posted_at :datetime
|
||||||
# email :string(513) not null
|
# email :string(513) not null
|
||||||
# password_hash :string(64)
|
# password_hash :string(64)
|
||||||
# salt :string(32)
|
# salt :string(32)
|
||||||
# active :boolean default(FALSE), not null
|
# active :boolean default(FALSE), not null
|
||||||
# username_lower :string(60) not null
|
# username_lower :string(60) not null
|
||||||
# auth_token :string(32)
|
# auth_token :string(32)
|
||||||
# last_seen_at :datetime
|
# last_seen_at :datetime
|
||||||
# admin :boolean default(FALSE), not null
|
# admin :boolean default(FALSE), not null
|
||||||
# last_emailed_at :datetime
|
# last_emailed_at :datetime
|
||||||
# trust_level :integer not null
|
# trust_level :integer not null
|
||||||
# approved :boolean default(FALSE), not null
|
# approved :boolean default(FALSE), not null
|
||||||
# approved_by_id :integer
|
# approved_by_id :integer
|
||||||
# approved_at :datetime
|
# approved_at :datetime
|
||||||
# previous_visit_at :datetime
|
# previous_visit_at :datetime
|
||||||
# suspended_at :datetime
|
# suspended_at :datetime
|
||||||
# suspended_till :datetime
|
# suspended_till :datetime
|
||||||
# date_of_birth :date
|
# date_of_birth :date
|
||||||
# views :integer default(0), not null
|
# views :integer default(0), not null
|
||||||
# flag_level :integer default(0), not null
|
# flag_level :integer default(0), not null
|
||||||
# ip_address :inet
|
# ip_address :inet
|
||||||
# moderator :boolean default(FALSE)
|
# moderator :boolean default(FALSE)
|
||||||
# blocked :boolean default(FALSE)
|
# blocked :boolean default(FALSE)
|
||||||
# title :string(255)
|
# title :string
|
||||||
# uploaded_avatar_id :integer
|
# uploaded_avatar_id :integer
|
||||||
# primary_group_id :integer
|
# locale :string(10)
|
||||||
# locale :string(10)
|
# primary_group_id :integer
|
||||||
# registration_ip_address :inet
|
# registration_ip_address :inet
|
||||||
# trust_level_locked :boolean default(FALSE), not null
|
# trust_level_locked :boolean default(FALSE), not null
|
||||||
# staged :boolean default(FALSE), not null
|
# staged :boolean default(FALSE), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -39,4 +39,5 @@ end
|
||||||
# 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
|
# index_user_badges_on_badge_id_and_user_id_and_post_id (badge_id,user_id,post_id) UNIQUE
|
||||||
# index_user_badges_on_badge_id_and_user_id_and_seq (badge_id,user_id,seq) UNIQUE
|
# index_user_badges_on_badge_id_and_user_id_and_seq (badge_id,user_id,seq) UNIQUE
|
||||||
|
# index_user_badges_on_user_id (user_id)
|
||||||
#
|
#
|
||||||
|
|
|
@ -33,7 +33,7 @@ end
|
||||||
# Table name: user_exports
|
# Table name: user_exports
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# file_name :string(255) not null
|
# file_name :string not null
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
|
|
|
@ -13,12 +13,12 @@ end
|
||||||
# Table name: user_fields
|
# Table name: user_fields
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# name :string(255) not null
|
# name :string not null
|
||||||
# field_type :string(255) not null
|
# field_type :string not null
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# editable :boolean default(FALSE), not null
|
# editable :boolean default(FALSE), not null
|
||||||
# description :string(255) not null
|
# description :string not null
|
||||||
# required :boolean default(TRUE), not null
|
# required :boolean default(TRUE), not null
|
||||||
# show_on_profile :boolean default(FALSE), not null
|
# show_on_profile :boolean default(FALSE), not null
|
||||||
# position :integer default(0)
|
# position :integer default(0)
|
||||||
|
|
|
@ -7,7 +7,7 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_field_id :integer not null
|
# user_field_id :integer not null
|
||||||
# value :string(255) not null
|
# value :string not null
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
#
|
#
|
||||||
|
|
|
@ -155,16 +155,16 @@ end
|
||||||
# details :text
|
# details :text
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# context :string(255)
|
# context :string
|
||||||
# ip_address :string(255)
|
# ip_address :string
|
||||||
# email :string(255)
|
# email :string
|
||||||
# subject :text
|
# subject :text
|
||||||
# previous_value :text
|
# previous_value :text
|
||||||
# new_value :text
|
# new_value :text
|
||||||
# topic_id :integer
|
# topic_id :integer
|
||||||
# admin_only :boolean default(FALSE)
|
# admin_only :boolean default(FALSE)
|
||||||
# post_id :integer
|
# post_id :integer
|
||||||
# custom_type :string(255)
|
# custom_type :string
|
||||||
# category_id :integer
|
# category_id :integer
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
|
|
|
@ -11,8 +11,8 @@ end
|
||||||
#
|
#
|
||||||
# id :integer not null, primary key
|
# id :integer not null, primary key
|
||||||
# user_id :integer not null
|
# user_id :integer not null
|
||||||
# email :string(255) not null
|
# email :string not null
|
||||||
# url :string(255) not null
|
# url :string not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# active :boolean not null
|
# active :boolean not null
|
||||||
|
|
|
@ -103,3 +103,30 @@ class UserOption < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# == Schema Information
|
||||||
|
#
|
||||||
|
# Table name: user_options
|
||||||
|
#
|
||||||
|
# user_id :integer not null, primary key
|
||||||
|
# email_always :boolean default(FALSE), not null
|
||||||
|
# mailing_list_mode :boolean default(FALSE), not null
|
||||||
|
# email_digests :boolean
|
||||||
|
# email_direct :boolean default(TRUE), not null
|
||||||
|
# email_private_messages :boolean default(TRUE), not null
|
||||||
|
# external_links_in_new_tab :boolean default(FALSE), not null
|
||||||
|
# enable_quoting :boolean default(TRUE), not null
|
||||||
|
# dynamic_favicon :boolean default(FALSE), not null
|
||||||
|
# disable_jump_reply :boolean default(FALSE), not null
|
||||||
|
# edit_history_public :boolean default(FALSE), not null
|
||||||
|
# automatically_unpin_topics :boolean default(TRUE), not null
|
||||||
|
# digest_after_days :integer
|
||||||
|
# auto_track_topics_after_msecs :integer
|
||||||
|
# new_topic_duration_minutes :integer
|
||||||
|
# last_redirected_to_top_at :datetime
|
||||||
|
# email_previous_replies :integer default(1), not null
|
||||||
|
#
|
||||||
|
# Indexes
|
||||||
|
#
|
||||||
|
# index_user_options_on_user_id (user_id) UNIQUE
|
||||||
|
#
|
||||||
|
|
|
@ -106,8 +106,8 @@ end
|
||||||
# Table name: user_profiles
|
# Table name: user_profiles
|
||||||
#
|
#
|
||||||
# user_id :integer not null, primary key
|
# user_id :integer not null, primary key
|
||||||
# location :string(255)
|
# location :string
|
||||||
# website :string(255)
|
# website :string
|
||||||
# bio_raw :text
|
# bio_raw :text
|
||||||
# bio_cooked :text
|
# bio_cooked :text
|
||||||
# profile_background :string(255)
|
# profile_background :string(255)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# NOTE: only doing this in development as some production environments (Heroku)
|
# NOTE: only doing this in development as some production environments (Heroku)
|
||||||
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
|
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
|
||||||
# NOTE: to have a dev-mode tool do its thing in production.
|
# NOTE: to have a dev-mode tool do its thing in production.
|
||||||
if(Rails.env.development?)
|
if(Rails.env.development? || Rails.env.test?)
|
||||||
task :set_annotation_options do
|
task :set_annotation_options do
|
||||||
# You can override any of these by setting an environment variable of the
|
# You can override any of these by setting an environment variable of the
|
||||||
# same name.
|
# same name.
|
||||||
|
@ -18,8 +18,10 @@ if(Rails.env.development?)
|
||||||
'require' => "",
|
'require' => "",
|
||||||
'exclude_tests' => "true",
|
'exclude_tests' => "true",
|
||||||
'exclude_fixtures' => "true",
|
'exclude_fixtures' => "true",
|
||||||
|
'exclude_helpers' => "true",
|
||||||
'exclude_factories' => "true",
|
'exclude_factories' => "true",
|
||||||
'exclude_serializers' => "true",
|
'exclude_serializers' => "true",
|
||||||
|
'exclude_controllers' => "true",
|
||||||
'ignore_model_sub_dir' => "false",
|
'ignore_model_sub_dir' => "false",
|
||||||
'skip_on_db_migrate' => "true",
|
'skip_on_db_migrate' => "true",
|
||||||
'format_bare' => "true",
|
'format_bare' => "true",
|
||||||
|
|
Loading…
Reference in a new issue