keep track of post approvals to prevent approval cycles

This commit is contained in:
Albert Yi
2016-10-31 17:51:44 -07:00
parent 03fd48c989
commit 2dbb869188
7 changed files with 159 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
class CreatePostApprovals < ActiveRecord::Migration
def change
create_table :post_approvals do |t|
t.integer :user_id, null: false
t.integer :post_id, null: false
t.timestamps null: false
end
add_index :post_approvals, :user_id
add_index :post_approvals, :post_id
end
end