I have a model Users that each instance have 3 features. It was alright until I wanted to tell if this instance can do the 1st feature, the 3rd or all.
I did a migration:
class AddStatusFeaturesToUsers < ActiveRecord::Migration
def change
add_column :users, :status_feature_a, :boolean
add_column :users, :status_feature_b, :boolean
add_column :users, :status_feature_c, :boolean
end
end
Is there a better way for doing this?
Users
class that you haven't posted? \$\endgroup\$