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

Version Path
adzap-validates_timeliness-1.1.1 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-1.1.2 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-1.1.3 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-1.1.4 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-1.1.5 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-1.1.6 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-1.1.7 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-2.0.0 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-2.1.0 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-2.2.0 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-2.2.1 spec/resources/sqlite_patch.rb
adzap-validates_timeliness-2.2.2 spec/resources/sqlite_patch.rb
markos_validates_timeliness-2.3.2.2 spec/resources/sqlite_patch.rb
markos_validates_timeliness-2.3.2.1 spec/resources/sqlite_patch.rb
markos_validates_timeliness-2.3.2 spec/resources/sqlite_patch.rb
validates_timeliness-2.3.2 spec/resources/sqlite_patch.rb
szilm-validates_timeliness-2.3.1 spec/resources/sqlite_patch.rb
validates_timeliness-2.3.1 spec/resources/sqlite_patch.rb
validates_timeliness-2.3.0 spec/resources/sqlite_patch.rb
validates_timeliness-2.2.2 spec/resources/sqlite_patch.rb