acts_as_localizable 0.3.2 → 0.3.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.
data/acts_as_localizable.gemspec
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
class CreateLocalizedFields < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
create_table :localized_fields do |t|
|
4
|
+
t.string :localized_object_type
|
5
|
+
t.integer :localized_object_id
|
6
|
+
t.string :locale
|
7
|
+
t.string :field_name
|
8
|
+
t.text :value
|
9
|
+
#Any additional fields here
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
add_index :localized_fields,[:localized_object_type,:localized_object_id], :name => 'index_localized_fields_on_object_type_and_id'
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.down
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_localizable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- davydotcom
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
requirements: []
|
89
89
|
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
91
|
+
rubygems_version: 1.6.2
|
92
92
|
signing_key:
|
93
93
|
specification_version: 3
|
94
94
|
summary: Used to store localized fields in your rails database for individual tables
|