Sha256: c5296554bead7ff72a9b4dcc51e5585f9c6e22c3042c0cfefbc4b67b118f44b1
Contents?: true
Size: 579 Bytes
Versions: 6
Compression:
Stored size: 579 Bytes
Contents
desc "project console" task :console => :environment do sh "irb -I #{File.expand_path('lib', File.dirname(__FILE__)) } -r qcourses" end desc "project environment" task :environment do ENV['RACK_ENV'] ||= 'development' end namespace :db do desc "migrate the database" task :migrate, [:version] => :environment do |t, args| migration_dir = File.expand_path('../../db/migrations', File.dirname(__FILE__)) command = ["sequel -E config/database.yml -m #{migration_dir}"] command << "-M #{args[:version]}" if args[:version] sh command.join(' ') end end
Version data entries
6 entries across 6 versions & 1 rubygems