5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 12:26:21 +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 def up
add_column :distributed_press_publishers, :default, :boolean, default: false add_column :distributed_press_publishers, :default, :boolean, default: false
DistributedPressPublisher.last.update(default: true) DistributedPressPublisher.last&.update(default: true)
end end
def down def down