Sha256: f85cf74801209da84ce594483e8287e6cce740767d899db6326d6fcb4445cf17

Contents?: true

Size: 186 Bytes

Versions: 8

Compression:

Stored size: 186 Bytes

Contents

class CreateUsersOnBothShards < BaseOctopusMigrationClass
  using(:brazil, :canada)

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

  def self.down
    User.delete_all
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
ar-octopus-ruby-3-0.11.3 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-ruby-3-0.11.2 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.10.2 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.10.1 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.10.0 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-master-0.9.2.1 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.9.2 spec/migrations/3_create_users_on_both_shards.rb
ar-octopus-0.9.1 spec/migrations/3_create_users_on_both_shards.rb