Change update_attributes to update
This commit is contained in:
parent
6340e224ed
commit
c7a74c8e7d
4 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ class AddSaltToSuppliers < ActiveRecord::Migration
|
|||
|
||||
Supplier.find_each do |supplier|
|
||||
salt = [Array.new(6){rand(256).chr}.join].pack("m").chomp
|
||||
supplier.update_attributes! salt: salt
|
||||
supplier.update! salt: salt
|
||||
end
|
||||
|
||||
change_column_null :suppliers, :salt, false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue