removing deprecation warning from rails 5

This commit is contained in:
Luciano Sousa 2015-02-02 22:54:46 -03:00
parent 394d69d958
commit 252a57d9b3
3 changed files with 3 additions and 3 deletions

View File

@ -460,7 +460,7 @@ Devise allows you to set up as many Devise models as you want. If you want to ha
create_table :admins do |t|
t.string :email
t.string :encrypted_password
t.timestamps
t.timestamps, null: false
end
# Inside your Admin model

View File

@ -7,7 +7,7 @@ class DeviseCreate<%= table_name.camelize %> < ActiveRecord::Migration
t.<%= attribute.type %> :<%= attribute.name %>
<% end -%>
t.timestamps
t.timestamps, null: false
end
add_index :<%= table_name %>, :email, unique: true

View File

@ -8,7 +8,7 @@ class AddDeviseTo<%= table_name.camelize %> < ActiveRecord::Migration
<% end -%>
# Uncomment below if timestamps were not included in your original model.
# t.timestamps
# t.timestamps, null: false
end
add_index :<%= table_name %>, :email, unique: true