I am trying to change a column in my database so that it can use the Postgres array data type. Currently the table column is of type string.
I am using the following
def change change_column :table, :dummy_column, :string, array: true, default: '{}' end
Notice:
it's specified as data type :string with array: true to default the column to an empty array ( [] ), you use default: '{}'