We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9093abe commit 34c8c9dCopy full SHA for 34c8c9d
.github/workflows/ruby.yml
@@ -12,7 +12,7 @@ jobs:
12
strategy:
13
fail-fast: false
14
matrix:
15
- ruby: [ '2.6', '2.7' ]
+ ruby: [ '2.6', '2.7', '3.0' ]
16
env:
17
RUBY_IMAGE: ${{ matrix.ruby }}
18
name: Ruby ${{ matrix.ruby }}
lib/active_record/postgres_enum/extensions.rb
@@ -23,8 +23,8 @@ def register_enum_type(row)
23
24
module ColumnMethods # :nodoc:
25
# 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))
+ def enum(name, enum_name:, **options)
+ column(name, enum_name, **options)
28
end
29
30
0 commit comments