midas / usesguid_migrations

Makes your migrations work with usesguid plugin without explicitly defining the primary key id in migrations.
MIT License
5 stars 1 forks source link

rails 3 class loading problem #2

Open salesking opened 14 years ago

salesking commented 14 years ago

Got following error with rails 3 project when trying to migrate:

undefined method `usesguid_create_table' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter:0xb667b568>

due to the fact that ActiveRecord::ConnectionAdapters::MysqlAdapter wasn't available

i needed to explizitly require the follwing in usesguid_migrations.rb

require "active_record/connection_adapters/mysql_adapter.rb"
hlascelles commented 12 years ago

I worked around this issue by adding the following at the top of application.rb require 'active_record/connection_adapters/mysql_adapter' require 'active_record/connection_adapters/sqlite3_adapter'

But that's pretty hacky...

I then ran into issue https://github.com/midas/usesguid_migrations/issues/3 regardless.