lib/hanami/commands/db/migrate.rb in hanami-1.0.0.beta2 vs lib/hanami/commands/db/migrate.rb in hanami-1.0.0.beta3

- old
+ new

@@ -1,24 +1,29 @@ require 'hanami/commands/command' module Hanami module Commands + # @api private class DB + # @api private class Migrate < Command requires 'model.sql' + # @api private def initialize(options, version) super(options) @version = version end + # @api private def start require 'hanami/model/migrator' Hanami::Model::Migrator.migrate(version: version) end private + # @api private attr_reader :version end end end end