public
Fork of technoweenie/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/b3b0p/mephisto.git
New spam_engine_data column in contents, which Comment serializes.

Spam engines can store data in this field for their own purposes.
francois (author)
Sun Mar 02 20:15:49 -0800 2008
commit  38129499530bba80c81b07c22104b312e158c518
tree    7ebb8bf66622d757c8e0f6b6770c6779d19b9569
parent  f4d879e252a966cd5594bef6c372bda55b57d27b
...
14
15
16
 
 
17
18
19
...
14
15
16
17
18
19
20
21
0
@@ -14,6 +14,8 @@ class Comment < Content
0
   has_one :event, :dependent => :destroy
0
   before_create :check_if_previewing
0
 
0
+ serialize :spam_engine_data
0
+
0
   attr_accessible :article, :article_id, :user_id, :user, :excerpt, :body, :author, :author_url, :author_email, :author_ip, :updater_id, :updater, :comment_age, :user_agent, :referrer, :preview
0
   attr_accessor :preview
0
   class Previewing < StandardError; end
...
9
10
11
12
 
13
14
15
...
93
94
95
96
97
 
 
98
99
100
101
 
 
102
103
104
105
106
 
 
107
108
109
110
 
 
111
112
113
114
 
115
116
117
...
9
10
11
 
12
13
14
15
...
93
94
95
 
 
96
97
98
99
 
 
100
101
102
103
104
 
 
105
106
107
108
109
 
110
111
112
113
 
114
115
116
117
118
0
@@ -9,7 +9,7 @@
0
 #
0
 # It's strongly recommended to check this file into your version control system.
0
 
0
-ActiveRecord::Schema.define(:version => 79) do
0
+ActiveRecord::Schema.define(:version => 80) do
0
 
0
   create_table "assets", :force => true do |t|
0
     t.string "content_type"
0
@@ -93,25 +93,26 @@ ActiveRecord::Schema.define(:version => 79) do
0
     t.datetime "created_at"
0
     t.datetime "updated_at"
0
     t.datetime "published_at"
0
- t.string "type", :limit => 20
0
- t.string "author", :limit => 100
0
+ t.string "type", :limit => 20
0
+ t.string "author", :limit => 100
0
     t.string "author_url"
0
     t.string "author_email"
0
- t.string "author_ip", :limit => 100
0
- t.integer "comments_count", :default => 0
0
+ t.string "author_ip", :limit => 100
0
+ t.integer "comments_count", :default => 0
0
     t.integer "updater_id"
0
     t.integer "version"
0
     t.integer "site_id"
0
- t.boolean "approved", :default => false
0
- t.integer "comment_age", :default => 0
0
+ t.boolean "approved", :default => false
0
+ t.integer "comment_age", :default => 0
0
     t.string "filter"
0
     t.string "user_agent"
0
     t.string "referrer"
0
- t.integer "assets_count", :default => 0
0
+ t.integer "assets_count", :default => 0
0
+ t.text "spam_engine_data"
0
   end
0
 
0
- add_index "contents", ["article_id", "approved", "type"], :name => "idx_comments"
0
   add_index "contents", ["published_at"], :name => "idx_articles_published"
0
+ add_index "contents", ["article_id", "approved", "type"], :name => "idx_comments"
0
 
0
   create_table "events", :force => true do |t|
0
     t.string "mode"

Comments

    No one has commented yet.