You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.
Warning: Modifying possible values
IMPORTANT: Once you have data using a bitmask, don't change the order of the values, remove any values, or insert any new values in the :as array anywhere except at the end. You won't like the results.
The README warns not to change the order of :as array once we have data, but is it ok to rename one value without changing the order?
Example:
class User < ActiveRecord::Base
bitmask :roles, :as => [:writer, :publisher, :editor, :proofreader]
end
to
class User < ActiveRecord::Base
bitmask :roles, :as => [:writer, :publisher, :story_editor, :proofreader, :event_editor]
end
The text was updated successfully, but these errors were encountered:
zocoi
changed the title
Is it ok to rename existing?
Is it ok to rename existing bitmask value?
Oct 2, 2018
The README warns not to change the order of
:as
array once we have data, but is it ok to rename one value without changing the order?Example:
to
The text was updated successfully, but these errors were encountered: