mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add ability to destroy a user with 0 posts
This commit is contained in:
15
db/migrate/20130411205132_create_admin_logs.rb
Normal file
15
db/migrate/20130411205132_create_admin_logs.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateAdminLogs < ActiveRecord::Migration
|
||||
def up
|
||||
create_table :admin_logs do |t|
|
||||
t.integer :action, null: false
|
||||
t.integer :admin_id, null: false
|
||||
t.integer :target_user_id
|
||||
t.text :details
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :admin_logs
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user