Module: DBNazi::TableDefinition
- Defined in:
- lib/db_nazi/table_definition.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/db_nazi/table_definition.rb', line 3 def self.included(base) base.class_eval do alias column_without_db_nazi column alias column column_with_db_nazi end end |
Instance Method Details
#column_with_db_nazi(name, type, options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/db_nazi/table_definition.rb', line 10 def column_with_db_nazi(name, type, = {}) DBNazi.check_column(type, ) column_without_db_nazi(name, type, ) end |