standalone_migrations 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +14 -0
- data/lib/tasks/standalone_migrations.rb +4 -0
- data/standalone_migrations.gemspec +2 -2
- metadata +49 -60
data/README.markdown
CHANGED
@@ -168,6 +168,20 @@ StandaloneMigrations::Configurator.environments_config do |env|
|
|
168
168
|
end
|
169
169
|
```
|
170
170
|
|
171
|
+
#### Exporting Generated SQL
|
172
|
+
|
173
|
+
If instead of the database-agnostic `schema.rb` file you'd like to
|
174
|
+
save the database-specific SQL generated by the migrations, simply
|
175
|
+
add this to your `Rakefile`.
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
require 'tasks/standalone_migrations'
|
179
|
+
ActiveRecord::Base.schema_format = :sql
|
180
|
+
```
|
181
|
+
|
182
|
+
You should see a `db/structure.sql` file the next time you run a
|
183
|
+
migration.
|
184
|
+
|
171
185
|
Contributors
|
172
186
|
============
|
173
187
|
- [Todd Huss](http://gabrito.com/)
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "standalone_migrations"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.11"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Todd Huss", "Michael Grosser"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-09-24"
|
13
13
|
s.email = "thuss@gabrito.com"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
metadata
CHANGED
@@ -1,60 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: standalone_migrations
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.11
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 10
|
10
|
-
version: 1.0.10
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Todd Huss
|
14
9
|
- Michael Grosser
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 3
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
31
|
-
prerelease: false
|
32
|
-
type: :runtime
|
13
|
+
date: 2012-09-24 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
33
16
|
name: rake
|
34
|
-
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
37
18
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
segments:
|
43
|
-
- 3
|
44
|
-
version: "3"
|
45
|
-
prerelease: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
46
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
47
32
|
name: activerecord
|
48
|
-
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '3'
|
39
|
+
type: :runtime
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ! '>='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3'
|
49
47
|
description:
|
50
48
|
email: thuss@gabrito.com
|
51
49
|
executables: []
|
52
|
-
|
53
50
|
extensions: []
|
54
|
-
|
55
|
-
extra_rdoc_files:
|
51
|
+
extra_rdoc_files:
|
56
52
|
- README.markdown
|
57
|
-
files:
|
53
|
+
files:
|
58
54
|
- Gemfile
|
59
55
|
- Gemfile.lock
|
60
56
|
- MIT-LICENSE
|
@@ -73,36 +69,29 @@ files:
|
|
73
69
|
- vendor/migration_helpers/lib/migration_helper.rb
|
74
70
|
homepage: http://github.com/thuss/standalone-migrations
|
75
71
|
licenses: []
|
76
|
-
|
77
72
|
post_install_message:
|
78
73
|
rdoc_options: []
|
79
|
-
|
80
|
-
require_paths:
|
74
|
+
require_paths:
|
81
75
|
- lib
|
82
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
77
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
segments:
|
89
83
|
- 0
|
90
|
-
|
91
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
hash: 2359183274081779188
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
86
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
version: "0"
|
87
|
+
requirements:
|
88
|
+
- - ! '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
100
91
|
requirements: []
|
101
|
-
|
102
92
|
rubyforge_project:
|
103
93
|
rubygems_version: 1.8.24
|
104
94
|
signing_key:
|
105
95
|
specification_version: 3
|
106
96
|
summary: A thin wrapper to use Rails Migrations in non Rails projects
|
107
97
|
test_files: []
|
108
|
-
|