Sha256: 0c15fc69ca437832b47395a13d1b7cae928354137021832e5cf2e1fe776bff3b
Contents?: true
Size: 425 Bytes
Versions: 21
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true require "sequel/timestamp_migrator_undo_extension" namespace :sequel do desc "Rollback a specific migration" task undo: :environment do version = ENV["VERSION"]&.to_i raise "VERSION is required" unless version path = Rails.root.join("db/migrate") migrator = Sequel::TimestampMigrator.new(DB, path, allow_missing_migration_files: true) migrator.undo(version) end end
Version data entries
21 entries across 21 versions & 1 rubygems