Class: ROM::Auth::Plugins::LockdownPlugin::LockdownMigration
- Defined in:
- lib/rom/auth/plugins/lockdown_plugin.rb
Instance Attribute Summary
Attributes inherited from Migration
Instance Method Summary collapse
Methods inherited from Migration
Constructor Details
This class inherits a constructor from ROM::Auth::Migration
Instance Method Details
#run ⇒ Object
74 75 76 77 78 79 80 81 82 |
# File 'lib/rom/auth/plugins/lockdown_plugin.rb', line 74 def run config = self.config auth_config = system.configuration database.alter_table(config.table_name) do add_column :locked_at, DateTime, default: nil, null: true add_column :lock_reason, String, null: true end end |