Module: Cloudfuji::Orm::ActiveRecord::Schema

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

Instance Method Summary collapse

Methods included from Schema

#apply_devise_schema, #recoverable, #rememberable, #trackable

Instance Method Details

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

Tell how to apply schema methods.



28
29
30
# File 'lib/cloudfuji/orm/active_record.rb', line 28

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