Sha256: 9a8ca5599a6a5722cf231ed09f0f490f5c532846b5b893678aff8abd76939c10

Contents?: true

Size: 313 Bytes

Versions: 5

Compression:

Stored size: 313 Bytes

Contents

class CreateUsers < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :<%= table_name %> do |t|
    <% config[:new_columns].values.each do |column| -%>
      <%= column %>
    <% end -%>
    end

<% config[:new_indexes].values.each do |index| -%>
    <%= index %>
<% end -%>
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authenticate-0.7.3 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.7.2 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.7.1 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.7.0 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.6.1 lib/generators/authenticate/install/templates/db/migrate/create_users.rb