schema_generator 0.9.0 → 1.0.0
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/schema_generator.rb +6 -1
- metadata +2 -2
data/schema_generator.rb
CHANGED
|
@@ -256,7 +256,7 @@ module DBMigrator
|
|
|
256
256
|
when 'postgresql'
|
|
257
257
|
@@dbdriver = ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.new(nil,nil)
|
|
258
258
|
when 'mysql'
|
|
259
|
-
@@dbdriver = ActiveRecord::ConnectionAdapters::MysqlAdapter.new(nil,nil,
|
|
259
|
+
@@dbdriver = ActiveRecord::ConnectionAdapters::MysqlAdapter.new(FakeMySQLConnection.new,nil,nil,{})
|
|
260
260
|
when 'sqlite'
|
|
261
261
|
@@dbdriver = ActiveRecord::ConnectionAdapters::SQLiteAdapter.new(nil,nil)
|
|
262
262
|
else
|
|
@@ -354,6 +354,11 @@ module DBMigrator
|
|
|
354
354
|
end
|
|
355
355
|
end
|
|
356
356
|
|
|
357
|
+
class FakeMySQLConnection
|
|
358
|
+
def method_missing(*args)
|
|
359
|
+
nil
|
|
360
|
+
end
|
|
361
|
+
end
|
|
357
362
|
end
|
|
358
363
|
|
|
359
364
|
$schema_generator = true
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: schema_generator
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.
|
|
7
|
-
date: 2005-12-
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
date: 2005-12-31 00:00:00 -08:00
|
|
8
8
|
summary: "The rails schema generator generates complete SQL schemas from a collection of
|
|
9
9
|
rails migrations. It currently produces one schema file each for MySQL,
|
|
10
10
|
PostgreSQL, and SQLite."
|