Fix deprecation warnings in migrations

This commit is contained in:
Tom Hughes 2015-12-21 16:11:02 +00:00
parent 18b8fc60bb
commit febff23c2c
4 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ class CreateUserRoles < ActiveRecord::Migration
t.column :user_id, :bigint, :null => false
t.column :role, :user_role_enum, :null => false
t.timestamps
t.timestamps :null => true
end
User.where(:administrator => true).each do |user|