frac-foreigner 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,4 +80,4 @@ end
80
80
  end
81
81
  rescue
82
82
  end
83
- end
83
+ end
@@ -10,8 +10,10 @@ module Foreigner
10
10
 
11
11
  module InstanceMethods
12
12
  def tables_with_foreign_keys(stream)
13
- @connection.tables.sort.each do |table|
14
- remove_foreign_keys(table, stream)
13
+ if ActiveRecord::ConnectionAdapters.const_defined?(:SQLServerAdapter)
14
+ @connection.tables.sort.each do |table|
15
+ remove_foreign_keys(table, stream)
16
+ end
15
17
  end
16
18
  tables_without_foreign_keys(stream)
17
19
  @connection.tables.sort.each do |table|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frac-foreigner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-04-07 00:00:00.000000000Z
12
+ date: 2011-04-11 00:00:00.000000000 +02:00
13
+ default_executable:
13
14
  dependencies: []
14
15
  description: Foreigner adapted to SQLServer and with natural primary key support for
15
16
  schema dumper and migrations
@@ -22,15 +23,16 @@ files:
22
23
  - MIT-LICENSE
23
24
  - Rakefile
24
25
  - README.rdoc
25
- - lib/foreigner/schema_dumper.rb
26
- - lib/foreigner/connection_adapters/sqlserver_adapter.rb
27
- - lib/foreigner/connection_adapters/sql_2003.rb
28
- - lib/foreigner/connection_adapters/postgresql_adapter.rb
29
26
  - lib/foreigner/connection_adapters/abstract/schema_definitions.rb
30
27
  - lib/foreigner/connection_adapters/abstract/schema_statements.rb
28
+ - lib/foreigner/connection_adapters/postgresql_adapter.rb
29
+ - lib/foreigner/connection_adapters/sql_2003.rb
30
+ - lib/foreigner/connection_adapters/sqlserver_adapter.rb
31
+ - lib/foreigner/schema_dumper.rb
31
32
  - lib/frac-foreigner.rb
32
- - test/mysql_adapter_test.rb
33
33
  - test/helper.rb
34
+ - test/mysql_adapter_test.rb
35
+ has_rdoc: true
34
36
  homepage: http://www.kemen.it
35
37
  licenses: []
36
38
  post_install_message:
@@ -51,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
53
  version: 1.3.5
52
54
  requirements: []
53
55
  rubyforge_project: frac-foreigner
54
- rubygems_version: 1.7.1
56
+ rubygems_version: 1.5.2
55
57
  signing_key:
56
58
  specification_version: 3
57
59
  summary: Foreigner adapted to SQLServer and with natural primary key support for schema