Class: Shaf::Generator::Migration::Empty

Inherits:
Base
  • Object
show all
Defined in:
lib/shaf/generator/migration/empty.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#add_change, #call, #column_def, identified_by, identifier, inherited, #initialize, #table_name, #target, usage

Constructor Details

This class inherits a constructor from Shaf::Generator::Migration::Base

Instance Method Details

#compile_changesObject



15
16
17
# File 'lib/shaf/generator/migration/empty.rb', line 15

def compile_changes
  add_change nil
end

#compile_migration_nameObject



11
12
13
# File 'lib/shaf/generator/migration/empty.rb', line 11

def compile_migration_name
  args.first || "empty"
end

#validate_argsObject



9
# File 'lib/shaf/generator/migration/empty.rb', line 9

def validate_args; end