Sha256: 330f8e894ba027cbdfcf7a29566782d06546f6eafb02692f24e843ac1aabe9b7

Contents?: true

Size: 215 Bytes

Versions: 46

Compression:

Stored size: 215 Bytes

Contents

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

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

Version data entries

46 entries across 42 versions & 7 rubygems

Version Path
notifiably_audited-activerecord-1.0.0 lib/generators/notifiably_audited/templates/rename_changes_to_audited_changes.rb
notifiably_audited-activerecord-0.1.15 lib/generators/notifiably_audited/templates/rename_changes_to_audited_changes.rb
notifiably_audited-activerecord-0.1.14 lib/generators/notifiably_audited/templates/rename_changes_to_audited_changes.rb
notifiably_audited-activerecord-0.1.12 lib/generators/notifiably_audited/templates/rename_changes_to_audited_changes.rb
notifiably_audited-activerecord-0.1.11 lib/generators/notifiably_audited/templates/rename_changes_to_audited_changes.rb
notifiably_audited-activerecord-0.0.7 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
notifiably_audited-0.0.6 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0/lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-activerecord-3.0.0 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
audited-activerecord-3.0.0.rc2 lib/generators/audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/generators/audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/generators/audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/generators/audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/audited-activerecord-3.0.0.rc1/lib/generators/audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/acts_as_audited-2.1.0/lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb
audited-activerecord-3.0.0.rc1 lib/generators/audited/templates/rename_changes_to_audited_changes.rb