Permalink
Browse files

Merge branch 'release/v1.0.10'

  • Loading branch information...
2 parents c0ebea4 + 7076d6b commit 54c40036faeee16f663ccb76bf53d749aa2f9127 @thuss thuss committed May 29, 2012
Showing with 10 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 Rakefile
  3. +5 −2 lib/tasks/standalone_migrations.rb
View
@@ -1,3 +1,4 @@
+.bundle
.idea
schema.rb
spec/tmp
View
@@ -1,3 +1,7 @@
+
+require 'rubygems'
+require 'bundler/setup'
+
task :default do
sh "rspec spec"
end
@@ -53,14 +53,17 @@ def s.load_seed
task(:rails_env){}
-task(:environment) do
- ActiveRecord::Base.configurations = standalone_configurator.config_for_all
+task(:environment => "db:load_config") do
ActiveRecord::Base.establish_connection standalone_configurator.config_for Rails.env
end
load 'active_record/railties/databases.rake'
namespace :db do
+ task :load_config do
+ ActiveRecord::Base.configurations = standalone_configurator.config_for_all
+ end
+
desc "Create a new migration"
task :new_migration do |t|
unless migration = ENV['name']

0 comments on commit 54c4003

Please sign in to comment.