Sha256: b1109a37bcf57cedf43014c33fd7be33fc904ec0042defc69140e6dfcb769017

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

namespace :slonik do
  namespace :db do
    desc "Migrate database using slonik_execute_script"
    task :migrate => :environment do
      SlonikMigration.patch { Rake::Task["db:migrate"].invoke }
    end

    namespace :migrate do
      task :up => :environment do
        SlonikMigration.patch { Rake::Task["db:migrate:up"].invoke }
      end
      task :down => :environment do
        SlonikMigration.patch { Rake::Task["db:migrate:down"].invoke }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slonik_migration-1.0.0 lib/tasks/slonik_migration.rake