activerecord-mysql-enum 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/active_record/mysql/enum/mysql_adapter.rb +2 -2
- data/lib/active_record/mysql/enum/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 990d55ec62633ed4bc3da5770f0b37fe020b24681b689d2528defa237d3d3411
|
4
|
+
data.tar.gz: 4500ece77eae411c0d4c51f1f7732258cb2c8e41ce8dc0bc7a0db56de0f491f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e993d90711a95befe09afff1f556e7f3a533cd2668a13164e69bb078601735f621bef907e373415280e6fb3a343b561a4ed479c70bdf3d95ce937ca86029654d
|
7
|
+
data.tar.gz: a1599a97a54c13f69f12f2c02be06b004d9b613ebe8913e3044eaa7b62a3b2b133c27231d4918508bd9af34388d31a0df8d49c01228444eeda68506302a400f3
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.1.2] - 2020-08-18
|
8
|
+
### Changed
|
9
|
+
- fixed frozen string to reassign value instead of append
|
10
|
+
|
7
11
|
## [0.1.1] - 2020-08-18
|
8
12
|
### Added
|
9
13
|
- extended activerecord dependency to '>= 4.2', '< 7'
|
data/Gemfile.lock
CHANGED
@@ -33,7 +33,7 @@ module ActiveRecord
|
|
33
33
|
native = native_database_types[type]
|
34
34
|
column_type_sql = (native || {})[:name] || 'enum'
|
35
35
|
|
36
|
-
column_type_sql
|
36
|
+
column_type_sql += "(#{limit.map { |v| quote(v) }.join(',')})"
|
37
37
|
|
38
38
|
column_type_sql
|
39
39
|
else
|
@@ -46,7 +46,7 @@ module ActiveRecord
|
|
46
46
|
native = native_database_types[type]
|
47
47
|
column_type_sql = (native || {})[:name] || 'enum'
|
48
48
|
|
49
|
-
column_type_sql
|
49
|
+
column_type_sql += "(#{limit.map { |v| quote(v) }.join(',')})"
|
50
50
|
|
51
51
|
column_type_sql
|
52
52
|
else
|