thecore_settings 2.0.2 → 2.0.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cafff1b57fc1c4e124155d2351b255000e725b8f4845bdb5f724c0d34b301dc
|
4
|
+
data.tar.gz: 02a9b30787bf39f2963e8c9279c76adb3004cb041403f06b238db0fa37d9be93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efefe22648f01bc00055b0d3d5df9ffeed3380b7813ee4b9dc74f0d9f584f0dfe763611421727a8dd885d419049638f64ba1a67c0b3a99ccddde70155af4cecb
|
7
|
+
data.tar.gz: fa490f1c30a2abc69ef0da417b3d87c9f2736cc2f9b7fe3e731af90c64083fd5c0bbc9e2904dd482dc539d6728aaabc013db7bf5208c2cff84fdd8f88e1e1fe3
|
@@ -15,9 +15,9 @@ it:
|
|
15
15
|
color_invalid: Colore non valido
|
16
16
|
mongoid: &mongoid
|
17
17
|
models:
|
18
|
-
|
18
|
+
thecore_settings/setting: Configurazioni
|
19
19
|
attributes:
|
20
|
-
|
20
|
+
thecore_settings/setting:
|
21
21
|
c_at: Creato
|
22
22
|
u_at: Modificato
|
23
23
|
enabled: Abilitato
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class CreateRailsAdminSettings < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :thecore_settings do |t|
|
4
4
|
t.boolean :enabled, default: true
|
5
5
|
t.string :kind, null: false, default: 'string'
|
6
6
|
t.string :ns, default: 'main'
|
@@ -19,7 +19,7 @@ class CreateRailsAdminSettings < ActiveRecord::Migration[5.0]
|
|
19
19
|
t.timestamps
|
20
20
|
end
|
21
21
|
|
22
|
-
add_index :
|
23
|
-
add_index :
|
22
|
+
add_index :thecore_settings, :key
|
23
|
+
add_index :thecore_settings, [:ns, :key], unique: true
|
24
24
|
end
|
25
25
|
end
|