class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration def change create_table(:<%= table_name %>) do |t| <%= migration_data -%> <% attributes.each do |attribute| -%> t.<%= attribute.type %> :<%= attribute.name %> <% end -%> t.timestamps end add_index :<%= table_name %>, :email, :unique => true add_index :<%= table_name %>, :reset_password_token, :unique => true # add_index :<%= table_name %>, :confirmation_token, :unique => true # add_index :<%= table_name %>, :unlock_token, :unique => true # add_index :<%= table_name %>, :authentication_token, :unique => true end end