PostgreSQLã«ã³ãã¡ã¬ã³ã¹2013 LightningTalk ï¼2013-11-13: migr8.rbã®è¨å®ç®æãè¥å¹²ä¿®æ£ï¼ ï¼2013-11-14: SQLite3ã§ã®è¨å®çãä¿®æ£ããmigr8.rb new --table=usersãã追å ï¼
class CreateProducts < ActiveRecord::Migration[7.0] def change create_table :products do |t| t.string :name t.text :description t.timestamps end end end class CreateProducts < ActiveRecord::Migration[7.0] def up create_table :products do |t| t.string :name t.text :description t.timestamps end end def down drop_table :products end end ã«ã©ã ããã¼ã¸ã§ã³ã¢ãã 説æ ãã¼ã¿ãã¼ã¹ã®ã«ã©ã ããã¼ã¸ã§ã³ã¢ãã upã¡ã½ããã¯ãã¼ã«ããã¯ã§ããªãå¦çãããéã«ä¸»ã«ä½¿ç¨
Gemfileã«ã¤ãã¦ããããã£ã¦ãªãã£ãã®ã§èª¿ã¹ã¦ã¿ãã ããããGemfileã£ã¦ï¼ Bundlerç¨ã®è¨å®ãã¡ã¤ã«ã Bundlerã¯Gemfileã®è¨è¿°ã«ãããã£ã¦ãgemã®ä¾åé¢ä¿ã示ããGemfile.lockãçæããã ããããBundlerã£ã¦ä½ãï¼ ã¢ããªã±ã¼ã·ã§ã³ã§ä½¿ç¨ããgemã®ãã¼ã¸ã§ã³ç®¡çãè¡ãããã°ã©ã ã ããåãæ¸ããã³ã¼ãåããªããã ãã©ï¼ã ããã¡ï¼ã俺ã®ç°å¢ã§ã¯åãã¦ããããã¼ã¸ã§ã³éãããããã¼ã®ï¼ãæ»ããã ã£ã¦ãªããªãããã®ãã¼ã«ã Railsãã¯ãããSinatraãRubyMotionã§ã使ããã¦ããã*1 ã¡ãªã¿ã«ãBundlerã®å ¬å¼ãµã¤ãã«ã¯ããæ¸ãã¦ããã The best way to manage your application's dependencies ãã¹ããããã®ã§ä½¿ããªãæã¯ãªãã source gemãç½®ãã¦ããå ´
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}