Add post regenerations
This commit is contained in:
13
db/migrate/20201121180345_create_post_regenerations.rb
Normal file
13
db/migrate/20201121180345_create_post_regenerations.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreatePostRegenerations < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :post_regenerations do |t|
|
||||
t.timestamps
|
||||
t.integer :creator_id, null: false
|
||||
t.integer :post_id, null: false
|
||||
t.string :category, null: false
|
||||
|
||||
t.index :creator_id
|
||||
t.index :post_id
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user