Sha256: dcee1bc6deec292d0e9cfecd7c44166f2498a87ff529bbdf591851ade8d1fdce

Contents?: true

Size: 279 Bytes

Versions: 13

Compression:

Stored size: 279 Bytes

Contents

class Cranium::TestFramework::DatabaseSequence < Cranium::TestFramework::DatabaseEntity


  def create
    connection.run "CREATE sequence #{entity_name}"
    self.class.entities_created << self
  end



  def destroy
    connection.run "DROP SEQUENCE #{entity_name}"
  end


end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cranium-0.8.1 lib/cranium/test_framework/database_sequence.rb
cranium-0.8 lib/cranium/test_framework/database_sequence.rb
cranium-0.7 lib/cranium/test_framework/database_sequence.rb
cranium-0.6.1 lib/cranium/test_framework/database_sequence.rb
cranium-0.5 lib/cranium/test_framework/database_sequence.rb
cranium-0.4.3 lib/cranium/test_framework/database_sequence.rb
cranium-0.4.2 lib/cranium/test_framework/database_sequence.rb
cranium-0.4.1 lib/cranium/test_framework/database_sequence.rb
cranium-0.4 lib/cranium/test_framework/database_sequence.rb
cranium-0.3.1 lib/cranium/test_framework/database_sequence.rb
cranium-0.3.0 lib/cranium/test_framework/database_sequence.rb
cranium-0.2.1 lib/cranium/test_framework/database_sequence.rb
cranium-0.2.0 lib/cranium/test_framework/database_sequence.rb