partitioned 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -207,4 +207,4 @@ update employees_partitions.p1 set name = 'Not Keith' where id = 1;
207
207
  4. Push to the branch (`git push origin my-new-feature`)
208
208
  5. Create new Pull Request
209
209
 
210
- Copyright 2010-2012 fiksu.com, inc, all rights reserved
210
+ Copyright 2010-2013 fiksu.com, inc, all rights reserved
@@ -135,7 +135,7 @@ module Partitioned
135
135
  insert_redirector_name = parent_table_rule_name("insert", "redirector", *partition_key_values)
136
136
  sql = <<-SQL
137
137
  DROP RULE #{insert_redirector_name}
138
- ON INSERT CASCADE
138
+ ON #{configurator.table_name(*partition_key_values)} CASCADE
139
139
  SQL
140
140
  execute(sql)
141
141
  end
@@ -426,6 +426,13 @@ module Partitioned
426
426
  partition_manager.create_infrastructure
427
427
  end
428
428
 
429
+ ##
430
+ # :method: delete_infrastructure
431
+ # delegated to Partitioned::PartitionedBase::PartitionManager#delete_infrastructure
432
+ def self.delete_infrastructure
433
+ partition_manager.delete_infrastructure
434
+ end
435
+
429
436
  ##
430
437
  # :method: partition_table_name
431
438
  # delegated to Partitioned::PartitionedBase::PartitionManager#partition_table_name
@@ -1,4 +1,4 @@
1
1
  module Partitioned
2
2
  # the current version of this gem
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
data/partitioned.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.name = 'partitioned'
8
8
  s.version = Partitioned::VERSION
9
9
  s.license = 'New BSD License'
10
- s.date = '2013-05-30'
10
+ s.date = '2013-09-17'
11
11
  s.summary = "Postgres table partitioning support for ActiveRecord."
12
12
  s.description = "A gem providing support for table partitioning in ActiveRecord. Support is available for postgres and AWS RedShift databases. Other features include child table management (creation and deletion) and bulk data creating and updating."
13
13
  s.authors = ["Keith Gabryelski", "Aleksandr Dembskiy", "Edward Slavich"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: partitioned
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-05-30 00:00:00.000000000 Z
14
+ date: 2013-09-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: jquery-rails
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  version: '0'
237
237
  requirements: []
238
238
  rubyforge_project:
239
- rubygems_version: 1.8.25
239
+ rubygems_version: 1.8.24
240
240
  signing_key:
241
241
  specification_version: 3
242
242
  summary: Postgres table partitioning support for ActiveRecord.