updated model annotations

This commit is contained in:
Régis Hanol 2013-08-13 22:09:27 +02:00
parent 92b0cfe3d3
commit 9a7df140b7
6 changed files with 35 additions and 2 deletions

View File

@ -33,3 +33,22 @@ class BlockedEmail < ActiveRecord::Base
end
end
# == Schema Information
#
# Table name: blocked_emails
#
# id :integer not null, primary key
# email :string(255) not null
# action_type :integer not null
# match_count :integer default(0), not null
# last_match_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_blocked_emails_on_email (email) UNIQUE
# index_blocked_emails_on_last_match_at (last_match_at)
#

View File

@ -44,6 +44,7 @@ end
# created_at :datetime not null
# updated_at :datetime not null
# rank :integer default(0), not null
# id :integer not null, primary key
#
# Indexes
#

View File

@ -106,6 +106,8 @@ end
#
# Indexes
#
# incoming_index (topic_id,post_number)
# incoming_index (topic_id,post_number)
# index_incoming_links_on_created_at_and_domain (created_at,domain)
# index_incoming_links_on_created_at_and_user_id (created_at,user_id)
#

View File

@ -43,7 +43,7 @@ class OptimizedImage < ActiveRecord::Base
def destroy
OptimizedImage.transaction do
Discourse.store.remove_file(url)
Discourse.store.remove_optimized_image(self)
super
end
end
@ -60,6 +60,7 @@ end
# width :integer not null
# height :integer not null
# upload_id :integer not null
# url :string(255) not null
#
# Indexes
#

View File

@ -37,5 +37,14 @@ end
# details :text
# created_at :datetime not null
# updated_at :datetime not null
# context :string(255)
# ip_address :string(255)
# email :string(255)
#
# Indexes
#
# index_staff_action_logs_on_action_and_id (action,id)
# index_staff_action_logs_on_staff_user_id_and_id (staff_user_id,id)
# index_staff_action_logs_on_target_user_id_and_id (target_user_id,id)
#

View File

@ -259,6 +259,7 @@ end
# total_msecs_viewed :integer default(0), not null
# cleared_pinned_at :datetime
# unstarred_at :datetime
# id :integer not null, primary key
#
# Indexes
#