Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for AlterColumn? #216

Open
kalafut opened this issue Jul 2, 2021 · 0 comments
Open

Example for AlterColumn? #216

kalafut opened this issue Jul 2, 2021 · 0 comments

Comments

@kalafut
Copy link

kalafut commented Jul 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant