Sha256: c55b56976154df0f25c723c062887a4ec8ab1e8c81bdee5e2384c447c17e382d

Contents?: true

Size: 270 Bytes

Versions: 11

Compression:

Stored size: 270 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    create_table :<%= table_name %> do |t|
<% attributes.each do |attribute| -%>
      t.<%= attribute[:type] %> :<%= attribute[:name] %>
<% end %>
      t.timestamps null: false
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
corneal-new-1.3.1 lib/corneal/generators/model/migration.rb.erb
corneal-new-1.3.0 lib/corneal/generators/model/migration.rb.erb
corneal-1.2.3 lib/corneal/generators/model/migration.rb.erb
natra-0.0.3 lib/natra/generators/model/migration.rb.erb
natra-0.0.2 lib/natra/generators/model/migration.rb.erb
natra-0.0.1 lib/natra/generators/model/migration.rb.erb
corneal-1.2.2 lib/corneal/generators/model/migration.rb.erb
corneal-1.2.1 lib/corneal/generators/model/migration.rb.erb
corneal-1.2.0 lib/corneal/generators/model/migration.rb.erb
corneal-1.1.0 lib/corneal/generators/model/migration.rb.erb
corneal-1.0.0 lib/corneal/generators/model/migration.rb.erb