translateable 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f72e8b50b3719bb4620f612f3d802723c54ca78
|
4
|
+
data.tar.gz: f1d37ecc104e3246da0dcb4ef69ead4e49de4799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ceb75373089abdf4117a0b981a878eb5b4ef73738b5000e1ebaa185aeb2834af891329fc56908b054085849fcd7a09974e8f6ab1832bd76d6bd47db21ee9b86
|
7
|
+
data.tar.gz: d70a1d37d88c98ebae87ea395ad563154ae0770720825af35ca6af9dff5ae451fa1b65a391706e8fb92a80a770cfcab29160543a607697ed014e61c5982aa6d9
|
@@ -2,7 +2,7 @@ class MigrateTranslateable<%= table_name.camelize + field_name.camelize %> < Act
|
|
2
2
|
def change
|
3
3
|
reversible do |dir|
|
4
4
|
dir.up do
|
5
|
-
add_column :<%= table_name %>, :<%= field_name + '_t' %>, :jsonb, null: false, default:
|
5
|
+
add_column :<%= table_name %>, :<%= field_name + '_t' %>, :jsonb, null: false, default: {}
|
6
6
|
execute <<-SQL
|
7
7
|
UPDATE <%= table_name %> AS m1
|
8
8
|
SET <%= field_name + '_t' %> = (
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translateable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Antonyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|