12th Mon
データベースを作成するRakeタスク
地味に欲しかった機能がいつの間にか実装されていた。
takiuchi% rake -T db:create [~/test]
(in /home/takiuchi/test)
rake db:create # Create the local database defined in config/database.yml for the current RAILS_ENV
rake db:create:all # Create all the local databases defined in config/database.yml
これで rake db:create:all と打てばdatabase.ymlに記述されているデータベースが作成されるわけですね。
posted by
genki on Mon 12 Nov 2007 at 15:56 with 0 comments