Switch to using native rails support for managing Postgres enumerations
This commit is contained in:
parent
cebda5ffb9
commit
f2f0cf1ad9
11 changed files with 14 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue