Class: BazaMigrations::Commands::Base
- Inherits:
-
Object
- Object
- BazaMigrations::Commands::Base
- Defined in:
- lib/baza_migrations/commands/base.rb
Direct Known Subclasses
AddColumn, AddIndex, CreateTable, DropTable, RemoveColumn, RemoveIndex
Instance Attribute Summary collapse
-
#db ⇒ Object
Returns the value of attribute db.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
Instance Attribute Details
#db ⇒ Object
Returns the value of attribute db.
2 3 4 |
# File 'lib/baza_migrations/commands/base.rb', line 2 def db @db end |
#table ⇒ Object
Returns the value of attribute table.
2 3 4 |
# File 'lib/baza_migrations/commands/base.rb', line 2 def table @table end |
Instance Method Details
#default_args(args = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/baza_migrations/commands/base.rb', line 4 def default_args(args = {}) return_args = {null: true} return_args[:null] = args[:null] if args.include?(:null) return_args[:default] = args[:default] if args.include?(:default) return_args end |