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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f35191b071a5b9b2a665a789757f3a1c4636ae7
4
- data.tar.gz: a67bcb5dacf5f6af9fff8d71bbc7e05fbf6bc023
3
+ metadata.gz: 3da0d71b895a11a2d15842c30c69eac40ce6a75a
4
+ data.tar.gz: 654098e5c3b88d14e644250d05247292395c2bf7
5
5
  SHA512:
6
- metadata.gz: b0e1556f9a98dd07487afa7aeb8f3a6a0e321581d006dc5b07574fe4d5a4619df30439f51bf3cc249303da8f56567af501775a7a429e35fdfcd674ae09388d34
7
- data.tar.gz: 4f81217f605fd21814cb5927f4a077d1ab3c0a419f05115afbb99ba04cf788635aaa2d93923a36a62277579a775ee20931cc69bf510f2258976f881e95d07c44
6
+ metadata.gz: 6747b893bbe0f2fc2deaacda73f9ce294bf20f2a8f9d41631c93aacbfff7e79c770b58205e2cafad6c328754a3aad26890c1efabd0b1f3928bc9385ff1cdc8c1
7
+ data.tar.gz: 8c0f03ece95a8e54ea1d39916fd74bf146191512685a28258b228f13621ac870f9778495ad6d75b48860949839c3ef8c66b591f5dee0784656a37b6a5557b331
data/README.md CHANGED
@@ -1,21 +1,25 @@
1
- # Capistrano::Rails:Db
1
+ # Capistrano::Rails::Db
2
2
 
3
3
  Rails migration tasks for Capistrano v3:
4
4
 
5
- - `cap deploy:db:abort_if_pending_migrations`
6
- - `cap deploy:db:create`
7
- - `cap deploy:db:drop`
8
- - `cap deploy:db:migrate`
9
- - `cap deploy:db:migrate:down`
10
- - `cap deploy:db:migrate:redo`
11
- - `cap deploy:db:migrate:reset`
12
- - `cap deploy:db:migrate:status`
13
- - `cap deploy:db:migrate:up`
14
- - `cap deploy:db:reset`
15
- - `cap deploy:db:rollback`
16
- - `cap deploy:db:seed`
17
- - `cap deploy:db:setup`
18
- - `cap deploy:db:version`
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
 
@@ -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.1'
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(29) + task_desc
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(29) + task_desc
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.1
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-18 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano-rails