14th Mon
Migrationで利用可能なネイティブデータタイプを調べる方法
現在使っているConnectionアダプターについて、
Migrationで利用可能なデータタイプを調べる方法のメモ。
rails>>
ActiveRecord::Base.connection.native_database_types.keys
=> [:boolean, :date, :binary, :datetime, :string, :integer, :decimal, :primary_key, :time, :float, :timestamp, :text]
<<--
posted by
genki on Mon 14 Jul 2008 at 03:24 with 0 comments