Module: Opinio::Orm::ActiveRecord::Schema

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

Instance Method Summary collapse

Methods included from Schema

#opinio

Instance Method Details

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

Tell how to apply schema methods.



9
10
11
# File 'lib/opinio/orm/active_record.rb', line 9

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