Sha256: b8f3ae248acccf1992e1430364555d33600a62e6f2c2afdb91cc33d39355fc29

Contents?: true

Size: 185 Bytes

Versions: 7

Compression:

Stored size: 185 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 & 1 rubygems

Version Path
ar-octopus-0.8.2 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.8.1 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.8.0 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.7.0 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.6.1 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.6.0 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.5.0 spec/migrations/3_create_users_on_both_shards.rb