Sha256: cbf0597d31989bebfd3d1f54a3aa69ed413af79f30fdebc1d0945654833ed546
Contents?: true
Size: 617 Bytes
Versions: 22
Compression:
Stored size: 617 Bytes
Contents
require 'eucalypt/migration/namespaces/migration-drop/generators/table' require 'eucalypt/app' require 'eucalypt/errors' require 'eucalypt/helpers' module Eucalypt class MigrationDrop < Thor include Eucalypt::Helpers using Colorize desc "table [NAME]", "Removes a table".colorize(:grey) def table(name) directory = File.expand_path('.') if Eucalypt.app? directory migration = Eucalypt::Generators::Drop::Table.new migration.destination_root = directory migration.generate(name: name) else Eucalypt::Error.wrong_directory end end end end
Version data entries
22 entries across 22 versions & 1 rubygems