damln/localtower

array migration fail

Closed this issue · 0 comments

when adding a "New Model", and choosing "array" as one of the types for a new column, the migration fails.

When using localtower to add a "New Migration" the choice for array works perfectly. I noticed that New Migration adds two lines:
add_column :target_model, :column_name, :text, default: [], array: true add_index :target_model, :column_name, using: :gin

However, adding a "New Model" and choosing array, only adds this one line inside the "create_table" action:
t.array :column_name

=============

SOLVED: I was using an old version of localtower.