Also you can use PostrgreSQL support for array storing. (If you’re using PG of course).
Your migration will look like that:
add_column :table_name, :column_name, :string, array: true, default: []
But don’t forget about validations.
Also you can use PostrgreSQL support for array storing. (If you’re using PG of course).
Your migration will look like that:
add_column :table_name, :column_name, :string, array: true, default: []
But don’t forget about validations.