Sha256: 791ac5bf44f97ebe69d49b2e388e14530e81c04493a1bac8895e59548a700309

Contents?: true

Size: 287 Bytes

Versions: 10

Compression:

Stored size: 287 Bytes

Contents

class Create<%= table_name.camelize %> < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :<%= table_name %> do |t|
<%= migration_data -%>
      t.timestamps null: false
    end

    add_index :<%= table_name %>, [:importable_id, :importable_type]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csv_import_magic-0.0.11 lib/generators/templates/migration.rb
csv_import_magic-0.0.10 lib/generators/templates/migration.rb
csv_import_magic-0.0.8 lib/generators/templates/migration.rb
csv_import_magic-0.0.7 lib/generators/templates/migration.rb
csv_import_magic-0.0.6 lib/generators/templates/migration.rb
csv_import_magic-0.0.5 lib/generators/templates/migration.rb
csv_import_magic-0.0.4 lib/generators/templates/migration.rb
csv_import_magic-0.0.3 lib/generators/templates/migration.rb
csv_import_magic-0.0.2 lib/generators/templates/migration.rb
csv_import_magic-0.0.1 lib/generators/templates/migration.rb