Sha256: 959ebb77c5786881f17eec44edf534c6db62cac38de9e94d78270415cd00c026
Contents?: true
Size: 481 Bytes
Versions: 70
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true require_relative 'base' module DeclareSchema module SchemaChange class TableRename < Base def initialize(old_name, new_name) @old_name = old_name @new_name = new_name end def up_command "rename_table #{@old_name.to_sym.inspect}, #{@new_name.to_sym.inspect}" end def down_command "rename_table #{@new_name.to_sym.inspect}, #{@old_name.to_sym.inspect}" end end end end
Version data entries
70 entries across 70 versions & 1 rubygems