educoder/db/migrate/20181118075620_sync_gitlab_...

7 lines
174 B

class SyncGitlabAdmin < ActiveRecord::Migration[5.2]
def change
user = User.find_by_login("forge01")
user.update_column(:mail, 'admin@example.com')
end
end