Skip to content

Commit 6957639

Browse files
committed
Add support for timestamptz ActiveRecord column type
1 parent a05a1f7 commit 6957639

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.0.5]
4+
5+
* Add support for timestamptz ActiveRecord column type
6+
37
## [2.0.4]
48

59
* Support Rails 8.1 [#342](https://github.com/bogdan/datagrid/issues/342)

lib/datagrid/drivers/active_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def normalized_column_type(scope, field)
9797
%i[integer primary_key] => :integer,
9898
%i[float decimal] => :float,
9999
[:date] => :date,
100-
%i[datetime timestamp] => :timestamp,
100+
%i[datetime timestamp timestamptz] => :timestamp,
101101
[:boolean] => :boolean,
102102
}.each do |keys, value|
103103
return value if keys.include?(builtin_type)

0 commit comments

Comments
 (0)