Skip to content
Browse files

microgemify minimal standalone migrations

  • Loading branch information...
1 parent 235b325 commit ad8d07b25f354efb4aeef465946dbf5202ef4d43 @svenfuchs svenfuchs committed Mar 17, 2012
Showing with 6 additions and 17 deletions.
  1. +4 −0 Gemfile
  2. +2 −1 Rakefile
  3. +0 −16 lib/migrations.rb
View
4 Gemfile
@@ -18,6 +18,10 @@ platform :jruby do
gem 'activerecord-jdbc-adapter', '1.2.2'
end
+group :development, :test do
+ gem 'micro_migrations', :git => 'git@gist.github.com:33e9f92c229eb808a4fa.git'
+end
+
group :test do
gem 'rspec', '~> 2.8.0'
gem 'factory_girl', '~> 2.6.0'
View
3 Rakefile
@@ -1,7 +1,8 @@
# need to add this path for stand-alone migrations that use models
require 'rspec/core/rake_task'
-require File.expand_path('lib/migrations')
+require 'bundler/setup'
+require 'micro_migrations'
require 'travis'
desc 'Run specs'
View
16 lib/migrations.rb
@@ -1,16 +0,0 @@
-# Standalone migrations
-
-require 'rubygems'
-require 'bundler/setup'
-require 'rails'
-require 'active_record/railtie'
-
-Bundler.require
-
-app = Class.new(Rails::Application)
-app.config.active_support.deprecation = :log
-app.load_tasks
-
-Rake::Task['environment'].enhance do
- app.initialize!
-end

0 comments on commit ad8d07b

Please sign in to comment.
Something went wrong with that request. Please try again.