Sha256: a8deedd64dfb4a2824f06b18487c35077c624db785fb65acd3d13283896b9987

Contents?: true

Size: 230 Bytes

Versions: 27

Compression:

Stored size: 230 Bytes

Contents

class <%= migration_name.camelize %> < ActiveRecord::Migration
  def change
    add_column :<%= children %>, :<%= name %>_id, :integer
<%- if create_index? -%>
    add_index :<%= children %>, :<%= name %>_id
<%- end -%>
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
scaffold_plus-1.7.4 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.7.3 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.7.1 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.7.0 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.6.0 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.5.0 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.16 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.15 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.14 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.13 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.12 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.10 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.9 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.8 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.7 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.6 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.5 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.4 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.3 lib/generators/scaffold_plus/has_many/templates/child_migration.rb
scaffold_plus-1.4.2 lib/generators/scaffold_plus/has_many/templates/child_migration.rb