Fix deprecated enum
syntax in tests
This commit is contained in:
parent
1a92af2b51
commit
93884c66d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user