Sha256: de8a20d72c8c4e972166e1c3bbc859d94cf2aa28d409b80b384114e50ec4bce4

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

require 'hanami/commands/command'

module Hanami
  module Commands
    class DB
      class Drop < Command
        requires 'model.configuration'

        def start
          require 'hanami/model/migrator'
          Hanami::Model::Migrator.drop
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-1.0.0.beta2 lib/hanami/commands/db/drop.rb
hanami-1.0.0.beta1 lib/hanami/commands/db/drop.rb
hanami-0.9.2 lib/hanami/commands/db/drop.rb
hanami-0.9.1 lib/hanami/commands/db/drop.rb
hanami-0.9.0 lib/hanami/commands/db/drop.rb