Class: Shaf::Generator::Migration::Empty
- Inherits:
-
Base
- Object
- Base
- Shaf::Generator::Migration::Empty
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
Instance Method Details
#compile_changes ⇒ Object
15
16
17
|
# File 'lib/shaf/generator/migration/empty.rb', line 15
def compile_changes
add_change nil
end
|
#compile_migration_name ⇒ Object
11
12
13
|
# File 'lib/shaf/generator/migration/empty.rb', line 11
def compile_migration_name
args.first || "empty"
end
|
#validate_args ⇒ Object
9
|
# File 'lib/shaf/generator/migration/empty.rb', line 9
def validate_args; end
|