Permalink
Commits on Oct 17, 2012
Commits on Sep 26, 2012
  1. adding the mssing 'end'

    pyu10055 committed Sep 26, 2012
  2. added console_using method to allow continue using a particular

    shard in console.
    pyu10055 committed Sep 26, 2012
Commits on Jul 3, 2012
  1. increased the version number

    pyu10055 committed Jul 3, 2012
  2. made the using and using_group class methods on the migration, this will

    fix the changes to the current_shard and current_group are set on the
    ActiveRecord::Migration class, and instead it will set those class
    attributes on individual migraiton class.
    pyu10055 committed Jul 3, 2012
Commits on Jul 2, 2012
  1. Add missing migrator.rb

    yonggu committed Jul 2, 2012
Commits on Jun 29, 2012
  1. Merge remote-tracking branch 'yonggu/master'

    Conflicts:
    	lib/octopus/migration.rb
    pyu10055 committed Jun 29, 2012
Commits on Jun 28, 2012
  1. unfortuately rails db:migrate doesnot use the run method by the migrate

    method. have to copy over rails code in order to proerly detect the
    sharded databases for each migration. with this change it can properly
    migrate sharded database that is not sync with the master db.
    updated the version number
    pyu10055 committed Jun 28, 2012
  2. restrict to reset shard

    yonggu committed Jun 28, 2012
  3. update code

    yonggu committed Jun 28, 2012
  4. allow groups to be empty

    yonggu committed Jun 28, 2012
  5. increased the version

    pyu10055 committed Jun 28, 2012
  6. overwritten active record migrator's run method, so the db schema

    migration versions are recorded properly for each sharding database. and
    this will allow migration to be run individual sharded database, instead
    of relying on the master database to provide migrated versions. and this
    should help us to add new sharded database and migrate them properly.
    pyu10055 committed Jun 28, 2012
Commits on Jun 27, 2012
Commits on Jun 1, 2012
  1. Merge pull request #97 from moonmaster9000/patch-1

    fix/clarify english grammer in README
    thiagopradi committed Jun 1, 2012
Commits on May 2, 2012
Commits on Mar 9, 2012
  1. Merge pull request #83 from akicho8/bugfix

    Association building with a block was not calling the block.
    gaffneyc committed Mar 9, 2012
  2. Block does not receive bugfix

    akicho8 committed Mar 9, 2012
Commits on Mar 8, 2012
  1. Refactoring how groups are accessed to remove enapsulation breaking.

    Groups were stored in a variable inside Octopus::Proxy and to use them a
    few places were breaking incapsulation by using instance_variable_get.
    This defines a small API for accessing the group information so we can
    use the interface instead of needing to know the implementation details.
    gaffneyc committed Mar 8, 2012
Commits on Mar 7, 2012
  1. Fixed a couple missed table renamings

    octopus_shard2 => octopus_shard_2
    gaffneyc committed Mar 7, 2012
  2. Remove ActionPack as a dependency.

    The one test that was using it has been nuked.
    gaffneyc committed Mar 7, 2012
Commits on Mar 1, 2012
  1. Refactoring to Octopus.enabled? for checking if we should hook into

    ActiveRecord or not.
    
    Seems that Octopus shouldn't hook in if the configuration is empty but
    there is an outstanding broken test. Will have to revisit later.
    gaffneyc committed Mar 1, 2012
  2. Refactoring to make the switch a little more obvious.

    Start of the process of getting familiar with the codebase.
    gaffneyc committed Mar 1, 2012
Commits on Feb 29, 2012
  1. Require just "spec_helper" instead of the expanded path.

    Unnecessary but brings it up to more recent Rails conventions.
    gaffneyc committed Feb 29, 2012
  2. Removing controller spec as it's pending and doesn't make sense.

    Octopus doesn't hook into ActionController at all so it doesn't make
    sense to test on this level.
    gaffneyc committed Feb 29, 2012
  3. Add ar-octopus that auto-requires octopus.

    Makes bundler gem specifications a little nicer. Didn't update the
    rails 2 documenation as I can't remember if remove :lib would be valid.
    gaffneyc committed Feb 29, 2012
  4. Shameless renaming of tables to include an underscore before the number.

    Also includes a refactoring of creating and dumping tables and using the
    environment variable for mysql user in testing shards config.
    gaffneyc committed Feb 29, 2012