• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

ActiveRecordを使っている場合、 YamlDb を使うと比較的簡単にデータの移行ができるようです。 script/consoleあたりから、

   1  YamlDb.dump "/path/to/data.yml" # dump
   2  YamlDb.load "/path/to/data.yml" # load

という感じに使えます。structureは作ってくれないので、migrationなどであらかじめ用意しておきます。

posted by Png genki on Mon 20 Jun 2011 at 16:07

Comments:

or Preview
Social Bookmarks
  • Delicious
  • B_entry1954
  • Clip_16_12_w
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ