僕は発展途上技術者

Rails でデータベースの内容を fixture ファイル(YAML形式)にダンプする

Rails 関連のメモ書きです。

» Dump or Slurp YAML Reference Data (and Fixtures) | Ruby on Rails for Newbies

より、「Rails でデータベースの内容を fixture ファイル(YAML形式)にダンプする」方法。

日本語の解説は

» ヽ( ・∀・)ノくまくまー(2006-02-11) 優しいRailsの育て方

を参照。

db:fixtures:load とあわせて使うと、テスト環境で用意したデータを本番環境に(あるいはその逆)が簡単にできます。

何をするにしても Rails だとスマート!

Comments

  • <strong>kingsville tx ford dealers...</strong>

    news<a href="http://joansharan.diowebhost.com/kingsley-ford-financial-servic.html" rel="nofollow"> (more...)</a>
  • <strong>car ding removal australia...</strong>

    news<a href="http://neldanormand.diowebhost.com/car-ding-protection-site.html" rel="nofollow"> (more...)</a>

Comments


(Option)


Recent Entries

Recent Comments

Tags

Archives

Admin