mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:07:43 +08:00
Add deleted_by
to Trashable
tables
This commit is contained in:
8
db/migrate/20130709184941_add_deleted_by_id_to_posts.rb
Normal file
8
db/migrate/20130709184941_add_deleted_by_id_to_posts.rb
Normal file
@ -0,0 +1,8 @@
|
||||
class AddDeletedByIdToPosts < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :posts, :deleted_by_id, :integer, null: true
|
||||
add_column :topics, :deleted_by_id, :integer, null: true
|
||||
add_column :invites, :deleted_by_id, :integer, null: true
|
||||
rename_column :post_actions, :deleted_by, :deleted_by_id
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user