Sha256: 18b2485149b1e4e62141483c2120feca7ae4294707f7cd244b101e445bf1bec8

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  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

9 entries across 9 versions & 1 rubygems

Version Path
authenticate-0.6.0 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.5.0 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.4.0 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.3.3 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.3.2 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.3.1 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.3.0 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.2.3 lib/generators/authenticate/install/templates/db/migrate/create_users.rb
authenticate-0.2.2 lib/generators/authenticate/install/templates/db/migrate/create_users.rb