Chatwoot/db/migrate/20170211092121_addallnametousers.rb

9 lines
149 B
Ruby
Raw Normal View History

class Addallnametousers < ActiveRecord::Migration[5.0]
def change
User.all.each do |u|
u.name = "Subash"
u.save!
end
end
end