annotate models

This commit is contained in:
Sam 2016-06-17 11:28:30 +10:00
parent 977facf4e4
commit aee7489a5a
6 changed files with 61 additions and 1 deletions

View File

@ -2,3 +2,19 @@ class CategoryTag < ActiveRecord::Base
belongs_to :category
belongs_to :tag
end
# == Schema Information
#
# Table name: category_tags
#
# id :integer not null, primary key
# category_id :integer not null
# tag_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# idx_category_tags_ix1 (category_id,tag_id) UNIQUE
# idx_category_tags_ix2 (tag_id,category_id) UNIQUE
#

View File

@ -2,3 +2,18 @@ class CategoryTagGroup < ActiveRecord::Base
belongs_to :category
belongs_to :tag_group
end
# == Schema Information
#
# Table name: category_tag_groups
#
# id :integer not null, primary key
# category_id :integer not null
# tag_group_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# idx_category_tag_groups_ix1 (category_id,tag_group_id) UNIQUE
#

View File

@ -75,10 +75,12 @@ end
# skipped_reason :string
# bounce_key :string
# bounced :boolean default(FALSE), not null
# message_id :string
#
# Indexes
#
# index_email_logs_on_created_at (created_at)
# index_email_logs_on_message_id (message_id)
# index_email_logs_on_reply_key (reply_key)
# index_email_logs_on_skipped_and_created_at (skipped,created_at)
# index_email_logs_on_user_id_and_created_at (user_id,created_at)

View File

@ -22,3 +22,15 @@ class TagGroup < ActiveRecord::Base
end
end
end
# == Schema Information
#
# Table name: tag_groups
#
# id :integer not null, primary key
# name :string not null
# created_at :datetime
# updated_at :datetime
# parent_tag_id :integer
# one_per_topic :boolean default(FALSE)
#

View File

@ -2,3 +2,18 @@ class TagGroupMembership < ActiveRecord::Base
belongs_to :tag
belongs_to :tag_group
end
# == Schema Information
#
# Table name: tag_group_memberships
#
# id :integer not null, primary key
# tag_id :integer not null
# tag_group_id :integer not null
# created_at :datetime
# updated_at :datetime
#
# Indexes
#
# index_tag_group_memberships_on_tag_group_id_and_tag_id (tag_group_id,tag_id) UNIQUE
#

View File

@ -21,6 +21,6 @@ end
# description :string not null
# required :boolean default(TRUE), not null
# show_on_profile :boolean default(FALSE), not null
# show_on_user_card :boolean default(FALSE), not null
# position :integer default(0)
# show_on_user_card :boolean default(FALSE), not null
#