mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 06:06:21 +00:00
fix: no fallar si no hay ninguno
This commit is contained in:
parent
f5af85a66e
commit
0975d8d5cf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue