Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Commit

Permalink
Allow migrating to specific point (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDowse authored and mermop committed Jan 18, 2017
1 parent ce1637e commit a0af0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/oauth2/schema.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module OAuth2

class Schema
def self.migrate
def self.migrate(target_version: nil)
ActiveRecord::Base.logger ||= Logger.new(StringIO.new)
ActiveRecord::Migrator.up(migrations_path)
ActiveRecord::Migrator.up(migrations_path, target_version)
end
class << self
alias :up :migrate
Expand Down

0 comments on commit a0af0c8

Please sign in to comment.