Sha256: 071bb02a9aead7fbfb755278bdfd9c9d0d30ca7e1bcb1a2e9c91acb2cc43c759

Contents?: true

Size: 184 Bytes

Versions: 7

Compression:

Stored size: 184 Bytes

Contents

class CreateUsersOnBothShards < ActiveRecord::Migration
  using(:brazil, :canada)

  def self.up
    User.create!(:name => 'Both')
  end

  def self.down
    User.delete_all
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ar-octopus-0.9.0 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.8.6 spec/migrations/3_create_users_on_both_shards.rb
misha-ar-octopus-0.8.7 spec/migrations/3_create_users_on_both_shards.rb
misha-ar-octopus-0.8.5 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.8.5 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.8.4 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.8.3 spec/migrations/3_create_users_on_both_shards.rb