Fix deprecated enum syntax in tests

This commit is contained in:
fatkodima 2024-02-10 12:42:54 +02:00
parent 1a92af2b51
commit 93884c66d5
2 changed files with 3 additions and 3 deletions

@ -11,7 +11,7 @@ class MySQLEnumTest < ActiveRecord::AbstractMysqlTestCase
class EnumTest < ActiveRecord::Base
attribute :state, :integer
enum state: {
enum :state, {
start: 0,
middle: 1,
finish: 2

@ -11,12 +11,12 @@ class PostgresqlEnumTest < ActiveRecord::PostgreSQLTestCase
class PostgresqlEnum < ActiveRecord::Base
self.table_name = "postgresql_enums"
enum current_mood: {
enum :current_mood, {
sad: "sad",
okay: "ok", # different spelling
happy: "happy",
aliased_field: "happy"
}, _prefix: true
}, prefix: true
end
def setup