Farmbot-Web-App/app/lib/sequence_migration/add_locals_to_sequence_args.rb

13 lines
296 B
Ruby

# This migration:
# Adds a `locals` arg to all v5 or better sequences.
module SequenceMigration
class AddLocalsToSequenceArgs < Base
VERSION = 6
CREATED_ON = "NOVEMBER 30 2017"
def up
sequence.args["locals"] ||= Sequence::SCOPE_DECLARATION
end
end
end