Sha256: 91201537630fb5e20e1755940d30327c256b62ffe0c53ddb6f64909baabe742d

Contents?: true

Size: 162 Bytes

Versions: 46

Compression:

Stored size: 162 Bytes

Contents

class <%= counter_migration.camelize %> < ActiveRecord::Migration
  def change
    add_column :<%= one.pluralize %>, :<%= table_name %>_count, :integer
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
scaffold_plus-1.4.4 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.3 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.2 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.1 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.3.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb