schema_generator 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/schema_generator.rb +5 -0
- data/templates/schema_version +1 -0
- metadata +25 -20
data/schema_generator.rb
CHANGED
@@ -63,6 +63,7 @@ class SchemaGenerator < Rails::Generator::Base
|
|
63
63
|
m.template 'schema.sqlite.sql', File.join('db', "schema.sqlite.sql")
|
64
64
|
m.template 'schema.sqlserver.sql', File.join('db', "schema.sqlserver.sql")
|
65
65
|
m.template 'schema.rb', File.join('db', "schema.rb")
|
66
|
+
m.template 'schema_version', File.join('db', "schema_version")
|
66
67
|
end
|
67
68
|
end
|
68
69
|
end
|
@@ -251,6 +252,10 @@ module DBMigrator
|
|
251
252
|
ActiveRecord::Base.class_eval 'alias save dbmigrate_save'
|
252
253
|
end
|
253
254
|
|
255
|
+
def self.schema_version
|
256
|
+
version
|
257
|
+
end
|
258
|
+
|
254
259
|
def self.dump(databasename)
|
255
260
|
begin
|
256
261
|
@@commandstring=''
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= DBMigrator::Database.schema_version %>
|
metadata
CHANGED
@@ -3,13 +3,11 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: schema_generator
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2006-01
|
8
|
-
summary:
|
9
|
-
rails migrations. It currently produces one schema file each for MySQL,
|
10
|
-
PostgreSQL, and SQLite."
|
6
|
+
version: 1.0.3
|
7
|
+
date: 2006-07-01 00:00:00 -07:00
|
8
|
+
summary: The rails schema generator generates complete SQL schemas from a collection of rails migrations. It currently produces one schema file each for MySQL, PostgreSQL, and SQLite.
|
11
9
|
require_paths:
|
12
|
-
|
10
|
+
- lib
|
13
11
|
email: scott@sigkill.org
|
14
12
|
homepage: http://scottstuff.net
|
15
13
|
rubyforge_project:
|
@@ -20,29 +18,36 @@ bindir: bin
|
|
20
18
|
has_rdoc: false
|
21
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
22
20
|
requirements:
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
27
24
|
version:
|
28
25
|
platform: ruby
|
29
26
|
signing_key:
|
30
27
|
cert_chain:
|
31
28
|
authors:
|
32
|
-
|
29
|
+
- Scott Laird
|
33
30
|
files:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
31
|
+
- templates/schema.mysql.sql
|
32
|
+
- templates/schema.oracle.sql
|
33
|
+
- templates/schema.postgresql.sql
|
34
|
+
- templates/schema.rb
|
35
|
+
- templates/schema.sqlite.sql
|
36
|
+
- templates/schema.sqlserver.sql
|
37
|
+
- templates/schema_version
|
38
|
+
- schema_generator.rb
|
39
|
+
- README
|
42
40
|
test_files: []
|
41
|
+
|
43
42
|
rdoc_options: []
|
43
|
+
|
44
44
|
extra_rdoc_files: []
|
45
|
+
|
45
46
|
executables: []
|
47
|
+
|
46
48
|
extensions: []
|
49
|
+
|
47
50
|
requirements: []
|
48
|
-
|
51
|
+
|
52
|
+
dependencies: []
|
53
|
+
|