mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
14 lines
292 B
Ruby
14 lines
292 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddRouteOpacityToSettings < ActiveRecord::Migration[7.1]
|
|
def up
|
|
User.find_each do |user|
|
|
user.settings = user.settings.merge(route_opacity: 20)
|
|
user.save!
|
|
end
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|