frac-foreigner 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,12 +14,12 @@ module Foreigner
14
14
  end
15
15
 
16
16
  def add_primary_key(table,options)
17
- constraint_name = "pk_#{table}}"
17
+ constraint_name = "#{table}_pkey"
18
18
  execute "ALTER TABLE #{table} ADD CONSTRAINT #{constraint_name} PRIMARY KEY (#{options[:column]})"
19
19
  end
20
20
 
21
21
  def remove_primary_key(table, options)
22
- constraint_name = "pk_#{table}}"
22
+ constraint_name = "#{table}_pkey"
23
23
  execute "ALTER TABLE #{table} DROP CONSTRAINT #{constraint_name}"
24
24
  end
25
25
 
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frac-foreigner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Cloned by Matthew Higgins
8
+ - Cloned from Matthew Higgins' Foreigner gem
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-04-06 00:00:00.000000000Z
12
+ date: 2011-04-07 00:00:00.000000000Z
13
13
  dependencies: []
14
- description: Foreigner adapted to SQLServer and with natural primay key support for
14
+ description: Foreigner adapted to SQLServer and with natural primary key support for
15
15
  schema dumper and migrations
16
16
  email: ''
17
17
  executables: []
@@ -54,6 +54,6 @@ rubyforge_project: frac-foreigner
54
54
  rubygems_version: 1.7.1
55
55
  signing_key:
56
56
  specification_version: 3
57
- summary: Foreigner adapted to SQLServer and with natural primay key support for schema
57
+ summary: Foreigner adapted to SQLServer and with natural primary key support for schema
58
58
  dumper and migrations
59
59
  test_files: []