diesel 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ Feature: reusable install generator
14
14
  s.add_dependency 'diesel'
15
15
  end
16
16
  """
17
- When I write to "db/migrate/create_examples.rb" with:
17
+ When I write to "db/migrate/001_create_examples.rb" with:
18
18
  """
19
19
  class CreateExamples < ActiveRecord::Migration
20
20
  def self.up
@@ -10,7 +10,7 @@ module Diesel
10
10
 
11
11
  def generate_migrations
12
12
  migrations.each do |migration|
13
- migration_template migration
13
+ migration_template migration, migration.sub(%r{(db/migrate/)(?:\d+_)?}, '\1')
14
14
  end
15
15
  end
16
16
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diesel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - thoughtbot, inc.