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

Error on remove_column and add_foreign_key with sqlite3 adapter #141

Open
mrkerr opened this issue Jan 27, 2023 · 0 comments
Open

Error on remove_column and add_foreign_key with sqlite3 adapter #141

mrkerr opened this issue Jan 27, 2023 · 0 comments

Comments

@mrkerr
Copy link

mrkerr commented Jan 27, 2023

I'm seeing this error when trying to run the migrate_sql rake task on migration files that include either remove_column or add_foreign_key:

ActiveRecord::StatementInvalid: SQLite3::SQLException: no such table: a<table_name>

Where <table_name> is the name of the table that is being changed. Adding these methods to methods_to_modify and redefine_metadata_methods fixes the issue but doesn't return any sql. Is it possible to get these migrations to work?

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