rubyリンクデータベース作成クラス
402 ワード
ActiveRecord::Base.establish_connection(:adapter => "mysql2", :host => "<host>", :username => "<username>", :password => "<password>", :database => "xmo", :encoding => "utf8")
class Client < ActiveRecord::Base
end