Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use the .up syntax, instead of migrate(:up) since that's not executin…

…g the migrations correctly on rails 3.1.x.
  • Loading branch information...
commit e217b855661dd53bb4c04d8748f421c69ceab265 1 parent 3039333
@cmeiklejohn cmeiklejohn authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test_helper.rb
View
6 test/test_helper.rb
@@ -22,7 +22,7 @@ class ActiveSupport::TestCase
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
require File.join(PROJECT_ROOT, 'lib', 'generators', 'paul_revere', 'templates', 'migration')
ActiveRecord::Base.establish_connection(
- :adapter => 'sqlite3',
- :database => ':memory:'
+ :adapter => "sqlite3",
+ :database => ":memory:"
)
-CreateAnnouncements.suppress_messages { CreateAnnouncements.migrate(:up) }
+CreateAnnouncements.suppress_messages { CreateAnnouncements.up }
Please sign in to comment.
Something went wrong with that request. Please try again.