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

Version Path
umbrellio-sequel-plugins-0.17.0 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.1 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0.239 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0.238 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0.235 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0.234 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0.233 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.16.0.211 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.15.0.198 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.14.0.192 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.14.0.189 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.14.0.188 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.14.0.187 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.14.0 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.13.0.185 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.13.0.172 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.13.0 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.12.0.169 lib/tasks/sequel/undo.rake
umbrellio-sequel-plugins-0.12.0 lib/tasks/sequel/undo.rake