Sha256: 09e28e7aebb76fe38846154a12fed78bdf08e9fdfde1848c9d04e74e378c7bdf

Contents?: true

Size: 215 Bytes

Versions: 9

Compression:

Stored size: 215 Bytes

Contents

class <%= migration_class_name %> < <%= migration_parent %>
  def self.up
    rename_column :audits, :changes, :audited_changes
  end

  def self.down
    rename_column :audits, :audited_changes, :changes
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
audited-4.10.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.9.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.8.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.7.1 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.7.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.6.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.5.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.4.1 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-4.4.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb