This project is archived and is in readonly mode.
schema_migrations.version is an INTEGER in test db
-
Pratik
- State changed from new to invalid
- Assigned user set to Pratik
You should submit a failing test or a patch - http://guides.rails.info/contrib...
Thanks !
-
Ben Woosley
- Tag changed from 2.1.1, migrations, schema to 2.1.1, 2.3.5, migrations, schema
- Importance changed from to
I ran into the same problem in 2.3.5, and it seems to be an issue with the prefix, as it was resolved once I dropped the prefix and monkey-patched the migrator to look for the prefix-less schema_migrations table. e.g:
module ActiveRecord class Migrator class << self def schema_migrations_table_name return 'schema_migrations' if Base.connection.table_exists?('schema_migrations') Base.table_name_prefix + 'schema_migrations' + Base.table_name_suffix end end end end