public
Description: Airtruk Enterprise Configuration Manager
Homepage:
Clone URL: git://github.com/penguincoder/airtruk.git
airtruk / Rakefile
100644 19 lines (15 sloc) 0.443 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# h/t http://adam.blog.heroku.com/past/2009/2/28/activerecord_migrations_outside_rails/
namespace :db do
  desc "Migrate the database"
  task :migrate do
    require 'app'
    ActiveRecord::Base.logger = Logger.new(STDOUT)
    ActiveRecord::Migration.verbose = true
    ActiveRecord::Migrator.migrate("db/migrate")
  end
end
 
desc "Tests the application using RSpec"
task :test do
  system('spec airtruk_spec.rb')
end
 
task :default => :test