* Added note version controller and test

* Added pool version controller and test
* Refactored unit tests for post disapprovals
* Renamed PostModerationDetail to PostDisapproval
This commit is contained in:
albert
2011-01-25 18:13:05 -05:00
parent 0cfaed90f8
commit 683d4583ac
22 changed files with 428 additions and 199 deletions

View File

@@ -0,0 +1,16 @@
class CreatePostDisapprovals < ActiveRecord::Migration
def self.up
create_table :post_disapprovals do |t|
t.column :user_id, :integer, :null => false
t.column :post_id, :integer, :null => false
t.timestamps
end
add_index :post_disapprovals, :user_id
add_index :post_disapprovals, :post_id
end
def self.down
drop_table :post_disapprovals
end
end