Sha256: b9e8b2a703becae172fab3b96ebe7357a5a24e578766cb13a55fe0e87329afd7

Contents?: true

Size: 260 Bytes

Versions: 7

Compression:

Stored size: 260 Bytes

Contents

class CreateUsersUsingBlockAndUsing < ActiveRecord::Migration
  using(:brazil)

  def self.up
    Octopus.using(:canada) do
      User.create!(:name => 'Canada')
    end

    User.create!(:name => 'Brazil')
  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/13_create_users_using_block_and_using.rb
ar-octopus-0.8.6 spec/migrations/13_create_users_using_block_and_using.rb
misha-ar-octopus-0.8.7 spec/migrations/13_create_users_using_block_and_using.rb
misha-ar-octopus-0.8.5 spec/migrations/13_create_users_using_block_and_using.rb
ar-octopus-0.8.5 spec/migrations/13_create_users_using_block_and_using.rb
ar-octopus-0.8.4 spec/migrations/13_create_users_using_block_and_using.rb
ar-octopus-0.8.3 spec/migrations/13_create_users_using_block_and_using.rb