bdurand / seamless_database_pool

Add support for master/slave database clusters in ActiveRecord to improve performance.
http://rdoc.info/projects/bdurand/seamless_database_pool
MIT License
224 stars 58 forks source link

rake db:* commands failing #12

Closed lloydmeta closed 11 years ago

lloydmeta commented 11 years ago

Hi there,

I'm trying to use seamless_database_pool with Rails 3.2.11 and mysql2 and running into problems with the rake db commands.

My database.yml file

development: &dev
  adapter: seamless_database_pool
  database: rotterdam_sdp_test
  username: root
  password:
  port: 3306
  pool_adapter: mysql2
  master:
    port: 3306
    host: localhost
    username: root
    password:

When I run rake db:create, nothing happens - the rotterdam_sdp_test db doesn't actually get created.

When I run rake db:migrate after having created the database myself, I get

undefined method create_table' for classActiveRecord::ConnectionAdapters::AbstractMysqlAdapter'

Any help would be greatly appreciated. Please let me know if you have any questions :)

psharpNumerex commented 11 years ago

Experiencing a similar issue. rake db:create will not create the database, however, once manually created, it will run the migrations.

bdurand commented 11 years ago

Should be fixed with version 1.0.13