Sha256: 83b5d78ae9b53329fc481e2b474ee36a0d94d0d7a626d5d0eb09cb9aa4369d2a
Contents?: true
Size: 701 Bytes
Versions: 23
Compression:
Stored size: 701 Bytes
Contents
# ** What is a Model? ** # # "Model" will help you to store any information in database and sync this information with server. # ** Create a model. ** # # Just inherit it from `Prime::Model`. class Event < Prime::Model end # ** Add some attributes to model. ** # # E.g. we want event to have title and description. class Event < Prime::Model attribute :title attribute :description end # ** Create some item. ** # # This event will be saved to database and accessible after restart of application. event = Event.create( title: 'MotionPrime release.', description: 'Check out new features.' ) # ** Retrieve all events ** Event.all # ** Next ** # # [Read more about Tables](tables.html)
Version data entries
23 entries across 23 versions & 1 rubygems