updated model annotations
This commit is contained in:
parent
92b0cfe3d3
commit
9a7df140b7
|
@ -33,3 +33,22 @@ class BlockedEmail < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
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)
|
||||||
|
#
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ end
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# rank :integer default(0), not null
|
# rank :integer default(0), not null
|
||||||
|
# id :integer not null, primary key
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -107,5 +107,7 @@ end
|
||||||
# Indexes
|
# 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)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
OptimizedImage.transaction do
|
OptimizedImage.transaction do
|
||||||
Discourse.store.remove_file(url)
|
Discourse.store.remove_optimized_image(self)
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -60,6 +60,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
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -37,5 +37,14 @@ 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)
|
||||||
|
# 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)
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -259,6 +259,7 @@ end
|
||||||
# total_msecs_viewed :integer default(0), not null
|
# total_msecs_viewed :integer default(0), not null
|
||||||
# cleared_pinned_at :datetime
|
# cleared_pinned_at :datetime
|
||||||
# unstarred_at :datetime
|
# unstarred_at :datetime
|
||||||
|
# id :integer not null, primary key
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue