Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 9, 2013
  1. @vipulnsward
Commits on Aug 5, 2013
  1. @rafaelfranca

    config[:database] should be a string

    rafaelfranca authored
    This change was breaking the Railties tests. See
    https://travis-ci.org/rails/rails/jobs/9865969
  2. @schneems

    Create sqlite3 directory if not present

    schneems authored
    If the `db/` directory is not present on a remote machine it will blow up in unexpected ways with error messages that do not indicate there is a missing directory:
    
    ```
    SQLite3::CantOpenException: unable to open database file
    ```
    
    This PR checks to see if a directory exists for the sqlite3 file and if not creates it for you.
    
    This PR is an alternative to #11692 as suggested by @josevalim
Commits on Mar 30, 2013
  1. @vijaydev

    Merge branch 'master' of github.com:lifo/docrails

    vijaydev authored
    Conflicts:
    	activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
    	activerecord/test/cases/adapter_test.rb
    	guides/source/testing.md
    
    [ci skip]
Commits on Mar 28, 2013
  1. @ranjaykrishna

    added comments to test_invalid_type in sqlite3 adapter test and added…

    ranjaykrishna authored
    … valid_type? method to abstract_adapter.rb and removed unnecessary method from sqlite3 adapter
Commits on Mar 25, 2013
  1. @ranjaykrishna @tenderlove

    Created a layer of abstraction for the valid type checking in schema …

    ranjaykrishna authored tenderlove committed
    …dumper. Now, connection handles the check for valid types so that each database can handle the changes individually.
Commits on Mar 22, 2013
  1. @tenderlove
Commits on Mar 16, 2013
  1. @frodsan
Commits on Mar 12, 2013
  1. @mmb

    Pass column to quote when copying a sqlite table.

    mmb authored
    To make quote escape binary data correctly it needs the column passed in.
Commits on Mar 8, 2013
  1. @cfabianski
Commits on Feb 24, 2013
  1. @rafaelfranca

    Do not type cast all the database url values.

    rafaelfranca authored
    We should only type cast when we need to use.
    
    Related to 4b005fb
Commits on Feb 20, 2013
  1. @senny

    also rename indexes when a table or column is renamed

    senny authored
    When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. Indexes with custom names will not be renamed.
  2. @senny
  3. @senny

    reserve index name chars for internal rails operations

    senny authored
    Some adapter (SQLite3) need to perform renaming operations to support
    the rails DDL. These rename prefixes operate with prefixes. When an
    index name already uses up the full space provieded by
    `index_name_length` these internal operations will fail. This patch
    introduces `allowed_index_name_length` which respects the amount of
    characters used for internal operations. It will always be <=
    `index_name_length` and every adapter can define how many characters
    need to be reserved.
Commits on Feb 15, 2013
  1. @jonleighton

    Remove valid_type? method

    jonleighton authored
    It was supposed to be removed by the preceding two reversions but I did
    them in the wrong order.
  2. @jonleighton

    Revert "Make valid_type? public"

    jonleighton authored
    This reverts commit 5d528f8.
    
    Relates to f8c8ad5 which is also getting reverted due to failing test.
Commits on Feb 14, 2013
  1. @rubys

    Make valid_type? public

    rubys authored
Commits on Feb 12, 2013
  1. @tenderlove

    Merge pull request #9204 from ranjaykrishna/col-prob

    tenderlove authored
    schema dumper tests now conducted by ActiveRecord::Base.Connection
  2. @ranjaykrishna
Commits on Jan 27, 2013
  1. @derekkraan @jonleighton

    Fix cases where delete_records on a has_many association caused errors

    derekkraan authored jonleighton committed
    because of an ambiguous column name. This happened if the association
    model had a default scope that referenced a third table, and the third
    table also referenced the original table (with an identical
    foreign_key).
    
    Mysql requires that ambiguous columns are deambiguated by using the full
    table.column syntax. Postgresql and Sqlite use a different syntax for
    updates altogether (and don't tolerate table.name syntax), so the fix
    requires always including the full table.column and discarding it later
    for Sqlite and Postgresql.
Commits on Dec 21, 2012
  1. @marcandre
Commits on Dec 19, 2012
  1. @senny

    Keep index names when using with sqlite3

    senny authored senny committed
Commits on Oct 28, 2012
  1. @frodsan

    SQLite3Adapter#type_cast should not mutate arguments

    Stefan Rusterholz authored frodsan committed
  2. @senny
Commits on Sep 28, 2012
  1. @jonleighton

    Support for partial inserts.

    jonleighton authored
    When inserting new records, only the fields which have been changed
    from the defaults will actually be included in the INSERT statement.
    The other fields will be populated by the database.
    
    This is more efficient, and also means that it will be safe to
    remove database columns without getting subsequent errors in running
    app processes (so long as the code in those processes doesn't
    contain any references to the removed column).
Commits on Sep 15, 2012
  1. @kennyj
Commits on Sep 14, 2012
  1. @jonleighton
Commits on Aug 17, 2012
  1. @tenderlove
Commits on Jun 25, 2012
  1. @drogus

    Revert "Merge pull request #6344"

    drogus authored
    This commit needs to be reverted because it introduces difficulties when
    using sqlite3 in development and other databases in production. This
    happens because when you create time column in sqlite3, it's dumped as
    datetime in schema.rb file.
    
    This reverts commit 57d534e, reversing
    changes made to 20f049f.
    
    Conflicts:
    
    	activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
Commits on May 18, 2012
  1. @kennyj

    Fix logs name consistency.

    kennyj authored
Commits on May 16, 2012
  1. @drogus

    Merge pull request #6344 from erichmenge/patch_sqlite_time_type

    drogus authored
    SQLite3 doesn't actually support the 'time' type.
  2. @oscardelben
  3. SQLite3 doesn't actually support the 'time' type.

    Erich Menge authored
Commits on May 15, 2012
  1. @carlosgaldino
Commits on May 14, 2012
  1. @scally
Something went wrong with that request. Please try again.