class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change create_table :admin_users do |t| t.string :email t.string :password_digest t.timestamps end add_index :admin_users, :email, unique: true end end