Sha256: 22d9dad8314d30600c6526bee5e2a13cca57a24141d3b64eb5e71672041f3812

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change

    create_table :users 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

2 entries across 2 versions & 1 rubygems

Version Path
authenticate-0.2.1 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.2.0 lib/generators/authenticate/install/templates/db/migrate/create_users.rb