capistrano-rails-db 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -15
- data/capistrano-rails-db.gemspec +1 -1
- data/lib/capistrano/tasks/db.rake +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3da0d71b895a11a2d15842c30c69eac40ce6a75a
|
4
|
+
data.tar.gz: 654098e5c3b88d14e644250d05247292395c2bf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6747b893bbe0f2fc2deaacda73f9ce294bf20f2a8f9d41631c93aacbfff7e79c770b58205e2cafad6c328754a3aad26890c1efabd0b1f3928bc9385ff1cdc8c1
|
7
|
+
data.tar.gz: 8c0f03ece95a8e54ea1d39916fd74bf146191512685a28258b228f13621ac870f9778495ad6d75b48860949839c3ef8c66b591f5dee0784656a37b6a5557b331
|
data/README.md
CHANGED
@@ -1,21 +1,25 @@
|
|
1
|
-
# Capistrano::Rails
|
1
|
+
# Capistrano::Rails::Db
|
2
2
|
|
3
3
|
Rails migration tasks for Capistrano v3:
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
5
|
+
Run `cap -T deploy:db` in the terminal to get a full list of the migration tasks:
|
6
|
+
|
7
|
+
``` bash
|
8
|
+
cap deploy:db:abort_if_pending_migrations # Run rake db:abort_if_pending_migrations
|
9
|
+
cap deploy:db:create # Run rake db:create
|
10
|
+
cap deploy:db:drop # Run rake db:drop
|
11
|
+
cap deploy:db:migrate # Run rake db:migrate Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)
|
12
|
+
cap deploy:db:migrate:down # Run rake db:migrate:down Run the "down" for a given migration VERSION
|
13
|
+
cap deploy:db:migrate:redo # Run rake db:migrate:redo Rollback the database one migration and re migrate up (options: STEP=x, VERSION=x)
|
14
|
+
cap deploy:db:migrate:reset # Run rake db:migrate:reset Reset your database using your migrations
|
15
|
+
cap deploy:db:migrate:status # Run rake db:migrate:status Display status of migrations
|
16
|
+
cap deploy:db:migrate:up # Run rake db:migrate:up Run the "up" for a given migration VERSION
|
17
|
+
cap deploy:db:reset # Run rake db:reset Drop and recreate the database from db/schema.rb and load the seeds
|
18
|
+
cap deploy:db:rollback # Run rake db:rollback Roll the schema back to the previous version (specify steps w/ STEP=n)
|
19
|
+
cap deploy:db:seed # Run rake db:seed Load the seed data from db/seed.rb
|
20
|
+
cap deploy:db:setup # Run rake db:setup Create the database, load the schema, and initialize with the seed data
|
21
|
+
cap deploy:db:version # Run rake db:version Retrieve the current schema version number
|
22
|
+
```
|
19
23
|
|
20
24
|
## Installation
|
21
25
|
|
data/capistrano-rails-db.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-rails-db"
|
7
|
-
gem.version = '0.0.
|
7
|
+
gem.version = '0.0.2'
|
8
8
|
gem.authors = ["Kentaro Imai"]
|
9
9
|
gem.email = ["kentaroi@gmail.com"]
|
10
10
|
gem.description = %q{Rails migration tasks for Capistrano v3}
|
@@ -17,7 +17,7 @@ namespace :deploy do
|
|
17
17
|
reset: 'Drop and recreate the database from db/schema.rb and load the seeds',
|
18
18
|
version: 'Retrieve the current schema version number'
|
19
19
|
}.each do |task_name, task_desc|
|
20
|
-
desc "Run rake db:#{task_name}".ljust(
|
20
|
+
desc "Run rake db:#{task_name}".ljust(28) + task_desc
|
21
21
|
task task_name => [:set_rails_env, :set_rails_db_options] do
|
22
22
|
on primary fetch(:migration_role) do
|
23
23
|
info "[deploy:db:#{task_name}] Run `rake db:#{task_name}`"
|
@@ -37,7 +37,7 @@ namespace :deploy do
|
|
37
37
|
redo: 'Rollback the database one migration and re migrate up (options: STEP=x, VERSION=x).',
|
38
38
|
reset: 'Reset your database using your migrations'
|
39
39
|
}.each do |task_name, task_desc|
|
40
|
-
desc "Run rake db:migrate:#{task_name}".ljust(
|
40
|
+
desc "Run rake db:migrate:#{task_name}".ljust(28) + task_desc
|
41
41
|
task task_name => [:set_rails_env, :set_rails_db_options] do
|
42
42
|
on primary fetch(:migration_role) do
|
43
43
|
info "[deploy:db:migrate:#{task_name}] Run `rake db:migrate:#{task_name}`"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rails-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kentaro Imai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano-rails
|