2017-08-31 00:06:56 -04:00
|
|
|
class CreateAdminLogs < ActiveRecord::Migration[4.2]
|
2013-04-11 16:04:20 -04:00
|
|
|
def up
|
2013-05-07 13:30:12 -04:00
|
|
|
create_table :admin_logs, force: true do |t|
|
2013-04-11 16:04:20 -04:00
|
|
|
t.integer :action, null: false
|
|
|
|
t.integer :admin_id, null: false
|
|
|
|
t.integer :target_user_id
|
|
|
|
t.text :details
|
2017-08-07 11:48:36 -04:00
|
|
|
t.timestamps null: false
|
2013-04-11 16:04:20 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :admin_logs
|
|
|
|
end
|
|
|
|
end
|