class DeviseCreateUsers < ActiveRecord::Migration def change create_table(:users) do |t| t.string :username, null: false, default: "" t.string :email, null: false, default: "" t.string :encrypted_password, null: false, default: "" t.string :reset_password_token t.datetime :reset_password_sent_at t.datetime :remember_created_at t.timestamps end add_index :users, :username, unique: true add_index :users, :reset_password_token, unique: true end end