Rails 4 het PostgreSQL-array-gegevenstype
In terminal
$ rails generate migration AddTagsToProduct tags:string
Migratiebestand:
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