Sha256: c87d6bfeddde7b7b0fefe9aeda7784ab1574e26b15811f6b85d159a9f78ce9f7
Contents?: true
Size: 774 Bytes
Versions: 33
Compression:
Stored size: 774 Bytes
Contents
# patches adapter in rails 2.0 which mistakenly made time attributes map to datetime column type ActiveRecord::ConnectionAdapters::SQLiteAdapter.class_eval do def native_database_types #:nodoc: { :primary_key => default_primary_key_type, :string => { :name => "varchar", :limit => 255 }, :text => { :name => "text" }, :integer => { :name => "integer" }, :float => { :name => "float" }, :decimal => { :name => "decimal" }, :datetime => { :name => "datetime" }, :timestamp => { :name => "datetime" }, :time => { :name => "time" }, :date => { :name => "date" }, :binary => { :name => "blob" }, :boolean => { :name => "boolean" } } end end
Version data entries
33 entries across 33 versions & 4 rubygems