Skip to content

Commit

Permalink
Add migrations for spam protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Haase committed Jun 29, 2012
1 parent 78e8bb2 commit 7d1a0ad
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20120429110752_add_viewers_to_posts.rb
@@ -0,0 +1,5 @@
class AddViewersToPosts < ActiveRecord::Migration
def change
add_column :posts, :viewers, :integer
end
end
11 changes: 11 additions & 0 deletions db/migrate/20120629140850_create_spammers.rb
@@ -0,0 +1,11 @@
class CreateSpammers < ActiveRecord::Migration
def change
create_table :spammers do |t|
t.references :user
t.string :reason

t.timestamps
end
add_index :spammers, :user_id
end
end

0 comments on commit 7d1a0ad

Please sign in to comment.