lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt in administration-zero-0.0.10 vs lib/generators/admin/install/templates/migrations/create_admin_users.rb.tt in administration-zero-0.0.11
- old
+ new
@@ -1,9 +1,9 @@
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.string :email, null: false
+ t.string :password_digest, null: false
t.timestamps
end
add_index :admin_users, :email, unique: true