i’m using a table, that uses fulltext search and therefore the table
type MyISAM
everything works fine in production mode, but tests fail with
ActiveRecord::StatementInvalid: Mysql::Error: The used table type
doesn’t support FULLTEXT indexes
when looking in the test db it’s clear, that it’s using InnoDB, but even
manually changing the table type does not help, since it’s created new
for every test run
(we use rspec, but it’s the same for normal test)
migration:
create_table :pages, :options => “engine=MyISAM” do |t|
…
end
should work that way and does in development mode…