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
|
@ -6,7 +6,7 @@ class CreateUserRoles < ActiveRecord::Migration[4.2]
|
|||
end
|
||||
|
||||
def self.up
|
||||
create_enumeration :user_role_enum, %w[administrator moderator]
|
||||
create_enum :user_role_enum, %w[administrator moderator]
|
||||
|
||||
create_table :user_roles do |t|
|
||||
t.column :user_id, :bigint, :null => false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue