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-2.1.4 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-2.1.3 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-2.1.2 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-2.1.1 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.10.3 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.10.2 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.10.1 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.10.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.9.3 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.9.2 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.9.1 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.9.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.8.0 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.14 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.13 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.12 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.11 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.10 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.9 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb
scaffold_plus-1.7.8 lib/generators/scaffold_plus/many_to_many/templates/counter_migration.rb