Switch to using native rails support for managing Postgres enumerations

This commit is contained in:
Tom Hughes 2023-11-15 18:19:54 +00:00
parent cebda5ffb9
commit f2f0cf1ad9
11 changed files with 14 additions and 37 deletions

View file

@ -1,6 +1,6 @@
class AddMapBugCommentEvent < ActiveRecord::Migration[4.2]
def self.up
create_enumeration :map_bug_event_enum, %w[opened closed reopened commented hidden]
create_enum :map_bug_event_enum, %w[opened closed reopened commented hidden]
add_column :map_bug_comment, :event, :map_bug_event_enum
end