culturecode_stagehand 0.6.2 → 0.6.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ea41fe5a8816f5594449d9e0657f6910fcd8914
4
- data.tar.gz: 0af6c35f913acf1544a6e8c4a7602c030f6fe086
3
+ metadata.gz: b90fc1739bab1a8ae915609503c36e47680f327b
4
+ data.tar.gz: 0b3e9406355c73ff862ddda8cedca4236ba5a400
5
5
  SHA512:
6
- metadata.gz: c5d2003aaba9bb5836e495c99b8e88a17cb9ce8bf9b207feec931ade86c225c1997135b3f635e67641c762c34e33a0f8c855ea105309b7301dafe2a95c271e06
7
- data.tar.gz: 3edefe25c506c096e485288434f64be6ed79abdf2060d6afbed992d589f9e5189f0038052467aef16a901a2cb12410657ff642d44bcf1003fd8233aa67d74ac0
6
+ metadata.gz: 15288da2a03708c1f713814bded0a5082745eaa7b3194d53f922529269e4be93e9f6041aa60cc5a2434ec090bc1e2ba252f046957b1a4b9051cecfa91d1e5b3f
7
+ data.tar.gz: 3da119c4808029e075551ab01d189e652efe5b50fa81bac9f2cbed8c07ed3f2af7bf587240b87840b392165c928cc7c9f0792d89809db08033a5b0f451bd0ddd
@@ -11,6 +11,13 @@ module Stagehand
11
11
 
12
12
  Schema.add_stagehand! :only => table_name
13
13
  end
14
+
15
+ def rename_table(old_table_name, new_table_name, *)
16
+ Schema.remove_stagehand!(:only => old_table_name)
17
+ super
18
+ Schema.add_stagehand!(:only => new_table_name)
19
+ Staging::CommitEntry.where(:table_name => old_table_name).update_all(:table_name => new_table_name)
20
+ end
14
21
  end
15
22
  end
16
23
  end
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode_stagehand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-28 00:00:00.000000000 Z
12
+ date: 2016-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.6
111
+ rubygems_version: 2.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Simplify the management of a sandbox database that can sync content to a