Skip to content

A platform for community discussion. Free, open, simple.

Update annotations.

Guo Xiang Tan98f84d1a4ed6
diff --git a/app/models/email_log.rb b/app/models/email_log.rb
index c8eab2749a2..ba588e1b430 100644
--- a/app/models/email_log.rb
+++ b/app/models/email_log.rb
@@ -89,7 +89,6 @@ end
# user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
-# reply_key :uuid
# post_id :integer
# skipped :boolean default(FALSE)
# skipped_reason :string
@@ -105,6 +104,5 @@ end
# index_email_logs_on_post_id (post_id)
# index_email_logs_on_reply_key (reply_key)
# index_email_logs_on_skipped_and_bounced_and_created_at (skipped,bounced,created_at)
-# index_email_logs_on_topic_id (topic_id)
# index_email_logs_on_user_id (user_id)
#
diff --git a/app/models/post_reply_key.rb b/app/models/post_reply_key.rb
index 18d15ed0c5f..3f1479f6a01 100644
--- a/app/models/post_reply_key.rb
+++ b/app/models/post_reply_key.rb
@@ -16,3 +16,20 @@ class PostReplyKey < ActiveRecord::Base
SecureRandom.hex(16)
end
end
+
+# == Schema Information
+#
+# Table name: post_reply_keys
+#
+# id :bigint(8) not null, primary key
+# user_id :integer not null
+# post_id :integer not null
+# reply_key :uuid not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+# Indexes
+#
+# index_post_reply_keys_on_reply_key (reply_key) UNIQUE
+# index_post_reply_keys_on_user_id_and_post_id (user_id,post_id) UNIQUE
+#