Permalink
Commits on Nov 21, 2016
  1. Merge pull request #178 from f3ndot/patch-1

    matthuhiggins committed Nov 21, 2016
    Update README to say foreigner is obsolete in Rails 4.2
Commits on Aug 12, 2016
Commits on Dec 17, 2015
  1. Merge pull request #177 from olivierlacan/patch-1

    matthuhiggins committed Dec 17, 2015
    Use SVG badges
Commits on Dec 16, 2015
  1. Use SVG badges

    olivierlacan committed Dec 16, 2015
    Looks better :-)
Commits on May 27, 2015
  1. Merge pull request #173 from vandrijevik/fix-deprecation-warning-for-…

    matthuhiggins committed May 27, 2015
    …capture
    
    Fix deprecation warning from ActiveSupport for Kernel#capture
Commits on May 26, 2015
  1. Merge pull request #172 from vandrijevik/fix-adapter-load-warning-mes…

    matthuhiggins committed May 26, 2015
    …sage
    
    Use puts instead of p for multi-line message
  2. Merge pull request #174 from vandrijevik/fix-activesupport-test-order…

    matthuhiggins committed May 26, 2015
    …-warning
    
    Set ActiveSupport::TestCase.test_order to avoid warning
Commits on May 25, 2015
Commits on Mar 31, 2015
Commits on Mar 30, 2015
  1. Merge pull request #169 from domcleal/rails32-version

    matthuhiggins committed Mar 30, 2015
    Fix ActiveRecord version retrieval on Rails 3
  2. Fix ActiveRecord version retrieval on Rails 3

    Dominic Cleal committed Mar 30, 2015
    Previously a889deb tried to create a Gem::Version out of a module rather than
    the full version string, causing:
    
        ArgumentError: Malformed version number string ActiveRecord::VERSION
    
    This fixes broken tests (https://travis-ci.org/matthuhiggins/foreigner/builds/56370433)
    and db:migrate on Rails 3.2.
  3. Fix test

    matthuhiggins committed Mar 30, 2015
  4. v1.7.3

    matthuhiggins committed Mar 30, 2015
Commits on Jan 10, 2015
  1. 1.7.2

    matthuhiggins committed Jan 10, 2015
  2. Merge pull request #162 from guiman/fix_foreigner_loading_problem

    matthuhiggins committed Jan 10, 2015
    Ensure Foreigner is loaded for Rails 4.1.9
Commits on Jan 9, 2015
  1. Ensure Foreigner is loaded for Rails 4.1.9

    guiman committed Jan 9, 2015
    When using Foreigner on Rails 4.1.9 and trying to run `schema::load`
    Foreigner has not been initialized yet so this methods don't exist.
    
    This change was introduced by the following Rails commit:
    
    * (rails/rails@5d6bb89)
    
    So in order to ensure Foreigner has been initialized and methods are
    present for `schema::load` to work correctly, we include `Foreigner.load`
    inside the `schema.rb` file before any of the foreign key methods.
    
    Also:
    
    * Introduce Foreigner::Helper to store class level helpers
    * Simplify the way to determine which version of ActiveRecord is using
Commits on Dec 1, 2014
  1. v1.7.1

    matthuhiggins committed Dec 1, 2014
  2. Merge pull request #158 from domcleal/mysql-options-comma

    matthuhiggins committed Dec 1, 2014
    Prevent parsing comma in MySQL `SHOW CREATE TABLE` output
  3. Prevent parsing comma in MySQL `SHOW CREATE TABLE` output

    Dominic Cleal committed Dec 1, 2014
    When a foreign key has no ON DELETE or additional options, and is followed by
    a comma (i.e. the first of many), then the trailing comma was incorrectly
    parsed as a constraint option.  This caused 'options: ","' to appear in
    schema.rb.
Commits on Nov 29, 2014
  1. v1.7.0

    matthuhiggins committed Nov 29, 2014
Commits on Sep 29, 2014
  1. Merge pull request #154 from jenseng/dump_options

    matthuhiggins committed Sep 29, 2014
    preserve db-specific options in schema.rb, fixes #148
  2. preserve db-specific options in schema.rb, fixes #148

    jenseng committed Sep 28, 2014
    basically any valid db-specific thing that you can already specify via
    `options: "..."` will be preserved on the way back out.
    
    for mysql that's:
    * `ON UPDATE <action>`
    
    for postgres that's:
    * `ON UPDATE <action>`
    * `ON DELETE SET DEFAULT` (doesn't map to a `:dependent` value)
    * `DEFERRABLE` (`NOT DEFERRABLE` is the default)
    * `INITIALLY DEFERRED` (`INITIALLY IMMEDIATE` is the default)
    * `NOT VALID`
    
    postgres' `MATCH <type>` is not supported, but that's already problematic
    for `:options` since it is incompatible with `:dependent` (due to where it
    appears in the statement), so ¯\_(ツ)_/¯
Commits on Sep 25, 2014
  1. Merge pull request #134 from mceachen/master

    matthuhiggins committed Sep 25, 2014
    Added support for table name prefixes and suffixes (and some other goodies)
  2. Merge pull request #153 from williamweckl/patch-1

    matthuhiggins committed Sep 25, 2014
    Update README.md
  3. Update README.md

    williamweckl committed Sep 25, 2014
    Changed method remove_foreign_key description. To remove fks, we need to pass the from table and the to table.
Commits on Jun 15, 2014
Commits on Jun 10, 2014
  1. Merge pull request #146 from mcpierce/add-license-to-gemspec

    matthuhiggins committed Jun 10, 2014
    Add MIT license to gemspec
  2. Add MIT license to gemspec

    mcpierce committed Jun 10, 2014
Commits on Jun 6, 2014
  1. Merge pull request #142 from greg-barnett/master

    matthuhiggins committed Jun 6, 2014
    use PostgreSQLAdapter when using postgis
Commits on May 12, 2014