Permalink
Browse files

add spam protection using acts as snook

  • Loading branch information...
1 parent 97e9109 commit 7319730046eb78f2bde8988edbc4ff61e8c848c1 @actsasflinn committed Dec 30, 2008
Showing with 16 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +12 −0 db/migrate/20081230014455_add_snook_attributes.rb
  3. +1 −0 vendor/plugins/acts_as_snook
View
@@ -0,0 +1,3 @@
+[submodule "vendor/plugins/acts_as_snook"]
+ path = vendor/plugins/acts_as_snook
+ url = git://github.com/rsl/acts_as_snook.git
@@ -0,0 +1,12 @@
+class AddSnookAttributes < ActiveRecord::Migration
+ def self.up
+ add_column :snippets, :author, :string
+ add_column :snippets, :email, :string
+ add_column :snippets, :url, :string
+ add_column :snippets, :spam_status, :string
+ end
+
+ def self.down
+ remove_column :snippets, :spam_status
+ end
+end
Submodule acts_as_snook added at 964b57

0 comments on commit 7319730

Please sign in to comment.