Skip to content

Commit 34c8c9d

Browse files
committed
chore: add ruby 3
1 parent 9093abe commit 34c8c9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ruby: [ '2.6', '2.7' ]
15+
ruby: [ '2.6', '2.7', '3.0' ]
1616
env:
1717
RUBY_IMAGE: ${{ matrix.ruby }}
1818
name: Ruby ${{ matrix.ruby }}

lib/active_record/postgres_enum/extensions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def register_enum_type(row)
2323

2424
module ColumnMethods # :nodoc:
2525
# Enables `t.enum :my_field, enum_name: :my_enum_name` on migrations
26-
def enum(name, options = {})
27-
column(name, options.delete(:enum_name), options.except(:enum_name))
26+
def enum(name, enum_name:, **options)
27+
column(name, enum_name, **options)
2828
end
2929
end
3030
end

0 commit comments

Comments
 (0)