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.7.7 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.6 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.5 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.4 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.3 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.1 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.6.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.5.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.16 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.15 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.14 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.13 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.12 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.10 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.9 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.8 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.7 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.6 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.4.5 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb