Sha256: c40e1f03e0b2d26b1cbcfd90f838e5283bdbdeb10f43304ff8ff3c4d60ff0eb2

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

class Create<%= name.classify.singularize %> < ActiveRecord::Migration[<%= Rails::VERSION::MAJOR %>.<%= Rails::VERSION::MINOR %>]
  def change
    create_table :<%= name.underscore.pluralize %> do |t|
      <% attributes.each do |attr| %>
      t.<%= attr.type %> :<%= attr.name %>
      <% end %>
      t.boolean :check_privacy
      t.references :language, index: true
      t.timestamps
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-ajax-form-1.2.1 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-2.1.0 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-2.0.0 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.2.0 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.1.5 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.1.3 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.1.2 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.1.1 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.1.0 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.0.1 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt
alchemy-ajax-form-1.0.0 lib/generators/custom_form/templates/db/migrate/generic_migration.rb.tt