Sha256: 419a46f60dfe5058d9c5a6d608fca771c38b33ebfd357fab469f45936ddb7b6c

Contents?: true

Size: 195 Bytes

Versions: 7

Compression:

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

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