Permalink
Browse files

Fix migrations

  • Loading branch information...
holman committed Nov 5, 2011
1 parent ecf6c20 commit 6a84b3c21dec036e6b1428b5320b1dd358352194
Showing with 1 addition and 2 deletions.
  1. +1 −2 bin/play
View
@@ -9,8 +9,7 @@ require 'play'
# Returns nothing.
def migrate
puts "Migrating your database"
version = ActiveRecord::Migrator.current_version
version = 1 if version == 0
version = `ls db/migrate | wc -l`.to_i
ActiveRecord::Base.establish_connection(Play.config['db'])
ActiveRecord::Migrator.migrate("#{File.dirname(__FILE__)}/../db/migrate/", version)
end

0 comments on commit 6a84b3c

Please sign in to comment.