Sha256: cc042b102dcbd71e97711da62c1fcd0d18d975e3a4ee27765fb130f34afca135

Contents?: true

Size: 194 Bytes

Versions: 7

Compression:

Stored size: 194 Bytes

Contents

class CreateUsersOnShardsOfAGroup < ActiveRecord::Migration
  using_group(:country_shards)

  def self.up
    User.create!(:name => 'Group')
  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/4_create_users_on_shards_of_a_group.rb
ar-octopus-0.8.6 spec/migrations/4_create_users_on_shards_of_a_group.rb
misha-ar-octopus-0.8.7 spec/migrations/4_create_users_on_shards_of_a_group.rb
misha-ar-octopus-0.8.5 spec/migrations/4_create_users_on_shards_of_a_group.rb
ar-octopus-0.8.5 spec/migrations/4_create_users_on_shards_of_a_group.rb
ar-octopus-0.8.4 spec/migrations/4_create_users_on_shards_of_a_group.rb
ar-octopus-0.8.3 spec/migrations/4_create_users_on_shards_of_a_group.rb