Module: Cable::Orm::ActiveRecord::Schema

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

Instance Method Summary collapse

Methods included from Schema

#addressable, #contactable, #menuable, #nameable

Instance Method Details

#apply_cable_schema(name, type, options = {}) ⇒ Object

Tell how to apply schema methods.



20
21
22
# File 'lib/cable/orm/active_record.rb', line 20

def apply_cable_schema(name, type, options={})
  column name, type.to_s.downcase.to_sym, options
end