rails array model code example
Example: model with array rails
create_table :products do |t|
t.string :name
t.text :colors, array: true, default: []
end
create_table :products do |t|
t.string :name
t.text :colors, array: true, default: []
end