5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-21 22:36:22 +00:00

fix: no fallar si no hay ninguno

This commit is contained in:
f 2024-03-26 15:48:30 -03:00
parent f5af85a66e
commit 0975d8d5cf
No known key found for this signature in database

View file

@ -5,7 +5,7 @@ class AddDefaultToDistributedPressPublisher < ActiveRecord::Migration[6.1]
def up
add_column :distributed_press_publishers, :default, :boolean, default: false
DistributedPressPublisher.last.update(default: true)
DistributedPressPublisher.last&.update(default: true)
end
def down