Module: Schemata::Orm::ActiveRecord::Schema

Includes:
Schema
Defined in:
lib/schemata/orm/active_record.rb

Instance Method Summary collapse

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, options={})
  column name, type.to_s.downcase.to_sym, options
end