DataMapperã«ã¯ãã¢ãã«ã¯ã©ã¹ã«å®ç¾©ããããããã£ã®æ å ±ããããã¼ãã«æ§é ãèªåçã«å¤æ´ããæ©è½ãããã DataMapper.auto_migrate! å ¨ã¦ã®ã¢ãã«ã¯ã©ã¹ã«å¯¾ããèªåãã¤ã°ã¬ã¼ã·ã§ã³ãè¡ãããã¼ãã«å ã®ãã¼ã¿ã¯ç ´æ£ãããã DataMapper.auto_upgrade! å ¨ã¦ã®ã¢ãã«ã¯ã©ã¹ã«å¯¾ãããã¼ãã«å ã®ãã¼ã¿ãä¿åããã¾ã¾ãèªåãã¤ã°ã¬ã¼ã·ã§ã³ãè¡ãã ç¹å®ã®ã¢ãã«ãã¨ã«èªåãã¤ã°ã¬ã¼ã·ã§ã³ãè¡ããã¨ãã§ããã Rails(ActiveRecord)ã¨åæ§ã«ããã¤ã°ã¬ã¼ã·ã§ã³ãã¨ã®ãã¡ã¤ã«ãç¨æããæ¹æ³ã ä¾ï¼ã¾ããmodels.rbã«ã¢ãã«ã®å®ç¾©ãããã¨ããã class Person include DataMapper::Resource property :id, Integer, :serial => true property :name,
{{#tags}}- {{label}}
{{/tags}}