Sha256: dfa501552e78d25e3e8ef65977440931c493f52c6563319e28dd0b6a2d399b1c

Contents?: true

Size: 242 Bytes

Versions: 17

Compression:

Stored size: 242 Bytes

Contents

class Create<%= table_name.camelize %> < ActiveRecord::Migration
  def change
    create_table(:<%= table_name %>) do |t|
<% attributes.each do |attribute| -%>
      t.<%= attribute.type %> :<%= attribute.name %>
<% end -%>
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
manifest-rails-0.2.8 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.7 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.6 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.5 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.4 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.3 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.2 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.1 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.2.0 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.1.3 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.1.2 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.1.1 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.1.0 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.0.4 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.0.3 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.0.2 lib/generators/manifest/data_type/templates/migration.rb
manifest-rails-0.0.1 lib/generators/manifest/data_type/templates/migration.rb