diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -14,3 +14,7 @@ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db
 Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
 
 SchemaComments.setup
+
+Dir.chdir(File.expand_path("../../spec/dummy",  __FILE__)) do
+  system('RAILS_ENV=test bin/rake db:create')
+end
Call rake db:create to create database for test