Sha256: ace9a13577f37358fa73f0789292b2049c358b8353eaef619977be9f37e2ac6d

Contents?: true

Size: 245 Bytes

Versions: 27

Compression:

Stored size: 245 Bytes

Contents

class <%= migration_name.camelize %> < ActiveRecord::Migration
  def change
    add_column :<%= child.pluralize %>, :<%= name %>_id, :integer
<%- if options.index? -%>
    add_index :<%= child.pluralize %>, :<%= name %>_id
<%- end -%>
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
scaffold_plus-2.1.4 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-2.1.3 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-2.1.2 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-2.1.1 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.10.3 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.10.2 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.10.1 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.10.0 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.9.3 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.9.2 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.9.1 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.9.0 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.8.0 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.14 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.13 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.12 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.11 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.10 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.9 lib/generators/scaffold_plus/has_one/templates/child_migration.rb
scaffold_plus-1.7.8 lib/generators/scaffold_plus/has_one/templates/child_migration.rb