Sha256: 7c857a51046541a470ad2b9548b2e42fa96faf2fd27f1bb39ec66c23a6a501f0

Contents?: true

Size: 197 Bytes

Versions: 41

Compression:

Stored size: 197 Bytes

Contents

class RaiseExceptionWithInvalidShardName < ActiveRecord::Migration
  using(:amazing_shard)
  
  def self.up
    User.create!(:name => "Error")
  end

  def self.down
    User.delete_all()
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
ar-octopus-0.4.0 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.3.4 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.3.3 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.3.2 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.3.1 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.3.0 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.2.2 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.2.1 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.2.0 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.1.2 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.1.1 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.1.0 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.30 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.29 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.28 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.27 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.26 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.25 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.24 spec/migrations/6_raise_exception_with_invalid_shard_name.rb
ar-octopus-0.0.23 spec/migrations/6_raise_exception_with_invalid_shard_name.rb