Sha256: 79ce55accc159bbf008b3efdca642294bff0fd60553f8386248cdf83815a7a40

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

class ReportableRenameModelName < ActiveRecord::Migration

  def self.up
    rename_column :reportable_cache, :model_name, :model_class_name
  end

  def self.down
    rename_column :reportable_cache, :model_class_name, :model_class_name
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reportable-1.4.2 lib/generators/reportable_model_name_migration/templates/migration.rb
reportable-1.4.1 lib/generators/reportable_model_name_migration/templates/migration.rb