shameless 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/shameless/index.rb +4 -4
- data/lib/shameless/model.rb +1 -1
- data/lib/shameless/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db3835f5ef9ce405fa408144ae0b8fa3953a064c
|
4
|
+
data.tar.gz: f790d5e4fd1e299839e662888fcfe43954352307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dde37619a76132a7ef7adcfbe9dd00d0daeaf96a582acfdb582e2f05c35d619191620587cacd9a9fb08796aae2b47c5c1118144ae52a5047bf72cc3901c788e9
|
7
|
+
data.tar.gz: 7753aa09027ae4627fa8b5bae6bff44b5f9e68cff2975f109276a36de22a75b800ab6ab0415ae8ac7dac63038ad249c6aaf0e990b0a2b83709fb2f0c0946071a
|
data/CHANGELOG.md
CHANGED
data/lib/shameless/index.rb
CHANGED
@@ -12,10 +12,10 @@ module Shameless
|
|
12
12
|
instance_eval(&block)
|
13
13
|
end
|
14
14
|
|
15
|
-
DataTypes =
|
15
|
+
DataTypes = {integer: Integer, string: String}
|
16
16
|
|
17
|
-
DataTypes.each do |type|
|
18
|
-
define_method(
|
17
|
+
DataTypes.each do |name, type|
|
18
|
+
define_method(name) do |column|
|
19
19
|
self.column(column, type)
|
20
20
|
end
|
21
21
|
end
|
@@ -68,7 +68,7 @@ module Shameless
|
|
68
68
|
|
69
69
|
t.varchar :uuid, size: 36
|
70
70
|
|
71
|
-
t.index @columns.keys, unique: true
|
71
|
+
t.index @columns.keys, name: "#{table_name}_index", unique: true
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
data/lib/shameless/model.rb
CHANGED
@@ -85,7 +85,7 @@ module Shameless
|
|
85
85
|
created_at_type = @store.configuration.legacy_created_at_is_bigint ? :bigint : :datetime
|
86
86
|
t.column :created_at, created_at_type, null: false
|
87
87
|
|
88
|
-
t.index %i[uuid column_name ref_key], unique: true
|
88
|
+
t.index %i[uuid column_name ref_key], name: "#{table_name}_model", unique: true
|
89
89
|
end
|
90
90
|
|
91
91
|
@indices.each(&:create_tables!)
|
data/lib/shameless/version.rb
CHANGED