Sha256: 7c1f3274b1a9bf0d54747a00e13018d5ef1f6afe1b6418f5ca9b3d2698ed1453
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
require 'bundler/setup' require 'bundler/gem_tasks' require 'bueller' Bueller::Tasks.new require 'rspec/core/rake_task' RSpec::Core::RakeTask.new task :default => :spec require 'active_record' load 'active_record/railties/databases.rake' def config spec = ENV['DATABASE_URL'] resolver = ActiveRecord::Base::ConnectionSpecification::Resolver.new spec, {} resolver.spec.config.stringify_keys end Rake::Task['db:load_config'].clear Rake::Task['db:create'].clear Rake::Task['db:drop'].clear namespace :db do task :create do create_database(config) end task :drop do drop_database_and_rescue(config) end task :load_config do ActiveRecord::Base.establish_connection ActiveRecord::Base.connection end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emitter-1.1.0 | Rakefile |