ActiveRecord: Drop/Create database, run migrations, outside of Rails by john on December 2, 2010 Sometimes it can be convenient to drop and create databases, and run migrations, outside of Rails — or rake. Here’s one way to do it in code (Ruby 1.9.2): require 'active_record' require 'pg' PG_SPEC = { :adapter => 'postgresql', :host => 'localhost', :database => '7fff', :username => 'postgres', :enco
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く