Rails 4 o tipo de dados PostgreSQL Array
No terminal
$ rails generate migration AddTagsToProduct tags:string
Arquivo de migração:
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