From a0af0c829b9a550a7e47ada7db2dbe9c5d76f547 Mon Sep 17 00:00:00 2001 From: Michael Dowse Date: Thu, 19 Jan 2017 12:29:42 +1300 Subject: [PATCH] Allow migrating to specific point (#7) --- lib/oauth2/schema.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oauth2/schema.rb b/lib/oauth2/schema.rb index 4fa4d00b..1e24642d 100644 --- a/lib/oauth2/schema.rb +++ b/lib/oauth2/schema.rb @@ -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