keep track of post approvals to prevent approval cycles
This commit is contained in:
12
db/migrate/20161101003139_create_post_approvals.rb
Normal file
12
db/migrate/20161101003139_create_post_approvals.rb
Normal 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
|
||||
Reference in New Issue
Block a user