Sha256: 68ece46f3a9fe02c1283aedde457fbcdd5bdf30c3ad1196c0462d8f8bc57105d
Contents?: true
Size: 682 Bytes
Versions: 22
Compression:
Stored size: 682 Bytes
Contents
require 'eucalypt/migration/namespaces/migration-rename/generators/column' require 'eucalypt/helpers' require 'eucalypt/errors' module Eucalypt class MigrationRename < Thor include Eucalypt::Helpers using Colorize desc "column [TABLE] [OLD] [NEW]", "Renames a column".colorize(:grey) def column(table, old_name, new_name) directory = File.expand_path('.') if Eucalypt.app? directory migration = Eucalypt::Generators::Rename::Column.new migration.destination_root = directory migration.generate(table: table, old_name: old_name, new_name: new_name) else Eucalypt::Error.wrong_directory end end end end
Version data entries
22 entries across 22 versions & 1 rubygems