Skip to content

Error on remove_column and add_foreign_key with sqlite3 adapter #141

@mrkerr

Description

@mrkerr

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions