added post mod details

This commit is contained in:
albert
2010-02-24 12:18:32 -05:00
parent 9f05154a5a
commit 96c6afd482
14 changed files with 533 additions and 1 deletions

View File

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