Class: UpdateAudits

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/auditing/templates/update_migration.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/generators/auditing/templates/update_migration.rb', line 7

def self.down
  change_column :audits, :old_value, :string
  change_column :audits, :new_value, :string
end

.upObject



2
3
4
5
# File 'lib/generators/auditing/templates/update_migration.rb', line 2

def self.up
  change_column :audits, :old_value, :text
  change_column :audits, :new_value, :text
end