diff --git a/app/models/user.rb b/app/models/user.rb index 4ca70b3f5..48dd9f08f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,5 @@ class User < ApplicationRecord include GDS::SSO::User - serialize :permissions, Array + serialize :permissions, type: Array end diff --git a/db/migrate/20130110143712_change_user_permissions_to_array.rb b/db/migrate/20130110143712_change_user_permissions_to_array.rb index 0948415f7..722c680ee 100644 --- a/db/migrate/20130110143712_change_user_permissions_to_array.rb +++ b/db/migrate/20130110143712_change_user_permissions_to_array.rb @@ -1,6 +1,6 @@ class ChangeUserPermissionsToArray < ActiveRecord::Migration class User < ApplicationRecord - serialize :permissions + serialize :permissions, type: Array end def up