Add ActiveRecord::Migration.maintain_test_schema! to spec_helper. Thanks @marcioj