13 lines
311 B
Ruby
13 lines
311 B
Ruby
class CreatePostReports < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :post_reports do |t|
|
|
t.integer :post_id, :null => false
|
|
t.string :user_id
|
|
t.boolean :reviewed, :default => false
|
|
t.text :text
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :post_reports, :post_id
|
|
end
|
|
end
|