Module: Schemata::Orm::ActiveRecord::Schema
- Includes:
- Schema
- Defined in:
- lib/schemata/orm/active_record.rb
Instance Method Summary collapse
-
#apply_schema(name, type, options = {}) ⇒ Object
Tell how to apply schema methods.
Methods included from Schema
#addressable, #contactable, #nameable
Instance Method Details
#apply_schema(name, type, options = {}) ⇒ Object
Tell how to apply schema methods.
20 21 22 |
# File 'lib/schemata/orm/active_record.rb', line 20 def apply_schema(name, type, ={}) column name, type.to_s.downcase.to_sym, end |