Railsy 4 typ danych PostgreSQL Array
W terminalu
$ rails generate migration AddTagsToProduct tags:string
Plik migracji:
class AddTagsToProduct < ActiveRecord::Migration
def change
add_column :products, :tags, :string, array: true, default: []
end
end
https://coderwall.com/p/sud9ja /rails-4-the-postgresql-array-data-type