Skip to content
Commits on Jun 1, 2012
  1. Bump version to 3.36.0

Commits on May 31, 2012
  1. Update CHANGELOG

  2. @r-stu31
  3. @r-stu31

    Unsigned integer type with 10 digits can potentially contain values

    r-stu31 committed
    which don't fit signed integer type. Regard such columns as Bignum,
    so that bigint type will be used in target database.
  4. Namespace indexes when copying databases in some cases

    If copying from a database without a global index namespace (e.g.
    MySQL) to a database with a global index namespace (e.g. PostgreSQL),
    the previous copying could break if you had indexes with the same
    name in both tables.  To work around this, prepend the table name
    to the index name when copying.
    Note that if the index name exactly matches Sequel's default name,
    it will not do any additional namespacing.
  5. Betting handling of :read_only and :deferrable options for PostgreSQL…

    … transactions
    If they are given and set to nil, ignore them instead of assuming
    they mean the same thing as false.
Commits on May 30, 2012
  1. Allow Model#from_json in the json_serializer plugin to use set_fields…

    … if a :fields option is given
    Additionally, pass the options hash to set_fields, so you can use
    the :missing=>:skip and :missing=>:raise options.
  2. Support :using option to set_column_type on PostgreSQL, to force a sp…

    …ecific conversion from the old value to the new value
    USING allows you to convert a column from one type to another even
    if there is no specific typecast for the conversion.  It's very
    flexible, even allowing other columns in the same row to be
  3. Drop indexes in the reverse order that they were added in the schema …

    I can't imagine the previous way breaking things, but for consistency,
    the schema dumper should always have the down block do the reverse
    of the up block in the reverse order.
  4. Make schema_dumper :index_names=>:namespace only affect databases tha…

    …t use a per-table index namespace
    If the database uses a global index namespace, the index names
    are already required to be unique, so there is no point in
    namespacing them.
  5. Add Database#global_index_namespace? method

    This checks if the index namespace is global, or whether there is
    a separate index namespace per table.  The default is true since
    that is what most databases seem to use, with MySQL, MSSQL, and
    Oracle being exceptions.
    It's a shame this wasn't here in the beginning, since this
    should be used by the default_index_name method to omit the
    table name if indexes are already namespaced per table.  For
    backward compatibility, that unfortunately cannot be done.
  6. Fix nondeterminism after schema dumper spec change on ruby 1.8

    On ruby 1.8, hashes don't have a set order, which makes checks
    for specific strings a pain.  Just sidestep the issue in this case
    by not using unique, since that's not what we are testing for
  7. Fix typecasting of time columns on jdbc/postgres, before could be off…

    … by a millisecond
    I was getting this occassional failure on the jdbc/postgres tests,
    which I tracked down to the floating point addition done here.
    Instead of doing floating point addition after time parsing, put
    the correct milliseconds as part of the string, so that the time
    parsing code can get it correct without the need to worry about
    rational numbers.
  8. Make Database#transaction on PostgreSQL recognize :read_only and :def…

    …errable options
    In addition to setting the transaction isolation level, PostgreSQL
    also supports these additional options.  READ ONLY ensures that
    most data changing commands are not allowed.  DEFERRABLE is only
    important for transactions that are both SERIALIZABLE and READ
    ONLY, in which case it has less overhead than a standard
    SERIALIZABLE transaction.
  9. @r-stu31

    Add support for :index_names option. It provides a facility to omit

    r-stu31 committed
    names of indexes from the dump and a facility to prepend table name.
  10. @r-stu31
  11. @chanks

    Edit the nested_attributes :transform proc - switch the order of the …

    chanks committed
    …arguments and expect it to return an attributes hash.
  12. @chanks
  13. @chanks

    Let nested_attributes take a proc as a :transform option, which is yi…

    chanks committed
    …elded both each attribute hash and the parent object itself.
Commits on May 29, 2012
  1. @chanks

    Nested attributes plugin: support creating children with primary keys…

    chanks committed
    … passed through the attributes hash.
    This adds an option to the nested_attributes declaration: :unmatched_key. Set it to :create to allow the creation of new children when an attributes hash contains an unmatched primary key. The default setting is :raise, which throws an error when an unmatched primary key is supplied. You can also set it to :ignore, which ignores any attributes hashes with unmatched primary keys. Setting :strict=>false is the same as :unmatched_pk=>:ignore, for backwards compatibility.
    One small backwards incompatibility: when :unmatched_pk=>:ignore (or :strict=>false), the nested_attributes_update and nested_attributes_remove methods are no longer called when no children match the supplied primary key. Anyone overriding those methods should be aware of this.
  2. @chanks
  3. @chanks
  4. Attempt to detect more disconnect errors in the mysql2 adapter

    Thanks to brianmario for some additional input.  If the
    connection object is available, call ping on it to see if
    the connection is alive, and assume disconnection if not.
    In addition to checking to the exception message, also check
    the sql_state, similar to what is done in the JDBC adapter.
    Not all disconnect errors have similar SQL states, so continue
    to use the exception message as a fallback.
  5. Add Migrator.check_current, cleanup Migrator.is_current? commit

    This cleans up the Migrator.is_current? commit, adding back the
    spec it removed and adding docs.  It also adds the requested
    method to raise an exception if there are unapplied migrations.
  6. @chanks
Commits on May 28, 2012
Commits on May 27, 2012
Something went wrong with that request. Please try again.