Sha256: 3db374747a5e6473e8a0d12cb58a94b5dd0eb9cb61383fbc21df5eb32869fa19

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

namespace :db do

  desc 'Run migrations'
  task :migrate => :environment do
    to   = ENV['TO'].to_i
    from = ENV['FROM'].to_i
    Artaius::Database.migrate(to, from)
  end

  desc 'Rollback database to the previous version'
  task :rollback => :environment do
    Artaius::Database.rollback
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artaius-0.2.1 tasks/db.rake
artaius-0.2.0 tasks/db.rake