Module: PaperTrail::Rails::RecordMigrationNameInVersion
- Defined in:
- lib/paper_trail/rails/migration_extensions.rb
Instance Method Summary collapse
Instance Method Details
#exec_migration(conn, direction) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/paper_trail/rails/migration_extensions.rb', line 4 def exec_migration(conn, direction) PaperTrail.request.whodunnit = nil PaperTrail::Rails. PaperTrail.( command: "rails db:migrate: #{self.name} (#{direction})" ) super end |