activerecord-db-tasks 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/activerecord-db/tasks.rb +2 -2
- metadata +3 -3
@@ -33,13 +33,13 @@ db_namespace = namespace :db do
|
|
33
33
|
|
34
34
|
namespace :migrate do
|
35
35
|
desc 'Runs the "up" for a given migration VERSION.'
|
36
|
-
task :up => :
|
36
|
+
task :up => :establish_connection do
|
37
37
|
raise 'VERSION is required' unless @version
|
38
38
|
ActiveRecord::Migrator.run :up, ActiveRecord::Migrator.migrations_paths, @version
|
39
39
|
end
|
40
40
|
|
41
41
|
desc 'Runs the "down" for a given migration VERSION.'
|
42
|
-
task :down => :
|
42
|
+
task :down => :establish_connection do
|
43
43
|
raise 'VERSION is required' unless @version
|
44
44
|
ActiveRecord::Migrator.run :down, ActiveRecord::Migrator.migrations_paths, @version
|
45
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-db-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,8 +27,8 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
-
description:
|
31
|
-
Rails
|
30
|
+
description: Rake db managements tasks for projects that use ActiveRecord without
|
31
|
+
Rails.
|
32
32
|
email:
|
33
33
|
- sgt.floydpepper@gmail.com
|
34
34
|
executables: []
|