Retrospring/db/migrate/20230205162103_enable_shari...

14 lines
273 B
Ruby

# frozen_string_literal: true
class EnableSharingForServiceOwners < ActiveRecord::Migration[6.1]
def up
execute <<~SQUIRREL
UPDATE users
SET sharing_enabled = true
WHERE id IN (SELECT user_id FROM services);
SQUIRREL
end
def down; end
end