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