Rails
Rails ããã¼ã¿ãã¼ã¹å±¤ã§ãã£ã¦ããã¨è¦ãã¨ã¤ã©ã¤ã©ãã¦ç²¾ç¥è¡çä¸è¯ããªãããæ°ã«ããªããã¨ã«ããããã§ãæ°ã«ãªãã2012-06-06 19:15:40 via TweetDeck ã¨ãããã¨ã§ãã£ã±ãæ°ã«ãªã£ã¦è²ã è¦ã¦ãã¾ãèªåã§ããRails ã® ActiveRecord ã§ããªã¼æ§é ãâ¦
Rails ã§ã¦ãã¼ã¯å¶ç´ãè¡ãããã«ã¯ãã¢ãã«ã« validates_uniqueness_of ãè¨å®ãã¦ãã¹ãã¼ãã§ã¦ãã¼ã¯ã¤ã³ããã¯ã¹ãè¨å®ãã¦ããã¨ãã話ãæ¸ãã¾ãã(https://tmtms.hatenablog.com/entry/20120602/rails_unique)ãããããã ãã§ã¯ååã§ã¯ããã¾ããâ¦
Rails ã§ã¢ããªã±ã¼ã·ã§ã³ã®åæåã¯ãããªæãã«ãªãã¨æãã¾ãã % rails new hoge -d mysql % cd hoge % mysql -uroot -p mysql> create user hoge@localhost identified by 'abcdefg'; mysql> grant all on hoge_development.* to hoge@localhost; mysqlâ¦
æè¿ Rails ã使ãå§ããã®ã§ãããæ°ã«ãªã£ããã¨ããã£ãã®ã§ã¡ã¢ã£ã¨ãã¾ããã¢ãã«ã«ä¸ææ§ããªãã¼ã·ã§ã³ãã¤ãã¦ãå³å¯ã«ã¯ãã§ãã¯ããã¾ããããããããã Rails ã§ã¯å¸¸èãªã®ããããã¾ããããRails åå¿è ãªã®ã§æ°ã«ãªã£ã¦ãã¾ãã¾ãããæ®éã« â¦