現在使っているConnectionアダプターについて、 Migrationで利用可能なデータタイプを調べる方法のメモ。

   1  ActiveRecord::Base.connection.native_database_types.keys
   2  => [:boolean, :date, :binary, :datetime, :string, :integer, :decimal, :primary_key, :time, :float, :timestamp, :text]

posted by Png genki on Mon 14 Jul 2008 at 03:17

Comments:

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