mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 12:16:23 +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
|
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
|
||||||
|
|
Loading…
Reference in a new issue