Skip to content

Instantly share code, notes, and snippets.

@rociopaez
Last active August 29, 2015 14:06
Show Gist options
  • Save rociopaez/5dbcacff58d5cbedb525 to your computer and use it in GitHub Desktop.
Save rociopaez/5dbcacff58d5cbedb525 to your computer and use it in GitHub Desktop.
class Input < Ohm::Model
include Ohm::DataTypes
attribute :date, Type::Date
reference :user, :User
reference :type, "::Type"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment