Skip to content
This repository

Jan 12, 2012

  1. Santiago Pastorino

    on and ON are type casted to a true boolean column

    authored January 11, 2012

Dec 29, 2011

  1. Jo Liss

    Document that index names are made up of all columns, not just the fi…

    …rst.
    
    index_name has been using the following expression
    
        "index_#{table_name}_on_#{Array.wrap(options[:column]) * '_and_'}"
    
    since at least 2006 (bc7f231), and that's how they come out in my DB.
    
    Please check that this is correct before merging into master, perhaps
    I'm misunderstanding the section I changed.
    authored December 27, 2011 vijaydev committed December 29, 2011

Dec 16, 2011

  1. Jon Leighton

    Should clear the primary keys cache also

    authored December 16, 2011
  2. Jon Leighton

    Don't store defaults in the schema cache

    authored December 16, 2011
  3. Jon Leighton

    Defaults hash can go on the model

    authored December 16, 2011
  4. Jon Leighton

    Cache columns at the model level.

    Allows two models to use the same table but have different primary keys.
    authored December 16, 2011

Dec 13, 2011

  1. Jon Leighton

    Revert naive O(1) table_exists? implementation.

    It was a bad idea to rescue exceptions here. This can interfere with
    transaction rollbacks which seems to be the cause of current CI
    failure.
    
    Instead, each adapter should implement its own DB-specific O(1)
    implementation, and we fall back on the generic, slower, implementation
    otherwise.
    authored December 13, 2011

Dec 09, 2011

  1. Aaron Patterson

    Use `table_exists?` from the schema cache.

    authored December 09, 2011
  2. Aaron Patterson

    don't need a begin / end.

    authored December 09, 2011
  3. Aaron Patterson

    squelch table exists? queries.

    authored December 09, 2011

Dec 08, 2011

  1. Aaron Patterson

    Exceptions should read from the spec configu

    authored December 08, 2011
  2. Vijay Dev

    fix nodocs

    authored December 09, 2011
  3. Vijay Dev

    fix comments

    authored December 09, 2011
  4. Aaron Patterson

    Use a hash to look up column definitions

    authored December 07, 2011
  5. Aaron Patterson

    try to normalize the objects passed to column()

    authored December 07, 2011
  6. Aaron Patterson

    automatically add the column definition to the columns list if creati…

    …ng a new one
    authored December 07, 2011

Dec 07, 2011

  1. Aaron Patterson

    stop calling String#to_s so frequently

    authored December 07, 2011
  2. Aaron Patterson

    the required sqlite3 adapter responds to encoding, so stop checking.

    authored December 07, 2011

Dec 05, 2011

  1. Aaron Patterson

    Quitoting the table name before querying.

    authored December 05, 2011
  2. Jade Rubick

    Speed up table_exists? for databases with a large number of tables

    At New Relic, we have hundreds of thousands of tables, and our migrations took 30 minutes without this similar patch. This cuts it down to a more reasonable amount of time.
    
    The rescue false part is ugly, but necessary as far as I can tell. I don't know of a cross-database statement you can make that will work without trapping errors.
    authored December 05, 2011

Dec 04, 2011

  1. Arun Agrawal

    SQlite3 Bump

    authored December 04, 2011

Dec 02, 2011

  1. Toshinori Kajihara

    Use show create table.

    authored November 22, 2011
  2. Xavier Noria

    implements automatic EXPLAIN logging for slow queries

    authored December 02, 2011

Nov 29, 2011

  1. Aaron Patterson

    push synchronization in to each method. Reduces method calls and makes

    it clear which methods are synchronized.
    authored November 29, 2011
  2. Aaron Patterson

    Automatic closure of connections in threads is deprecated. For example

    the following code is deprecated:
    
    Thread.new { Post.find(1) }.join
    
    It should be changed to close the database connection at the end of
    the thread:
    
    Thread.new {
      Post.find(1)
      Post.connection.close
    }.join
    
    Only people who spawn threads in their application code need to worry
    about this change.
    authored November 29, 2011
  3. Aaron Patterson

    AbstractAdapter#close can be called to add the connection back to the

    pool.
    authored November 29, 2011
  4. Aaron Patterson

    Start implementing @reserved_connections in terms of connection leases.

    authored November 29, 2011
  5. Aaron Patterson

    Rename `checked_out` to more descriptive `active_connections`

    authored November 29, 2011
  6. Aaron Patterson

    Use connection lease to determine "checked_out" connections

    authored November 29, 2011
  7. Aaron Patterson

    expire will set in_use to false

    authored November 29, 2011
  8. Aaron Patterson

    Leased connections return false on second lease

    authored November 29, 2011
  9. Aaron Patterson

    Adapters keep in_use flag when leased

    authored November 29, 2011
  10. Jon Leighton

    Deprecate set_primary_key in favour of self.primary_key=

    authored November 29, 2011
  11. Aaron Patterson

    respond_to? information of AR is not the responsibility of the spec

    resolver.
    authored November 29, 2011

Nov 28, 2011

  1. Aaron Patterson

    remove unused instance variable

    authored November 28, 2011
Something went wrong with that request. Please try again.