clear icon indicating copy to clipboard operation
clear copied to clipboard

Example for AlterColumn?

Open kalafut opened this issue 3 years ago • 0 comments

Hi! Thanks for Clear which is working great.

I'm struggling to use change_column_type or even directly AlterColumn in a migration. I continue to get:

In lib/clear/src/clear/migration/operation/columns.cr:73:28

 73 | def initialize(@table, @column_name, column_type, new_column_name, new_column_type)
                             ^-----------
Error: can't infer the type of instance variable '@column_name' of Clear::Migration::AlterColumn

Do you have an example of its use? In the mean time I will write SQL.

kalafut avatar Jul 02 '21 18:07 kalafut