Sha256: e5cf36e694b3841f19a9668b48b349b618bd1a1ad94baf1b4aeee7cfc857ae29

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

# A test model object 
# Be sure and call setup and teardown
class NewRelic::Agent::ModelFixture < ActiveRecord::Base
  self.table_name = 'test_data'
  def self.setup
    connection.create_table :test_data, :force => true do |t|
      t.column :name, :string
    end
    connection.setup_slow
  end
  
  def self.teardown
    connection.teardown_slow
    connection.drop_table :test_data
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newrelic_rpm-2.8.0 test/new_relic/agent/model_fixture.rb
newrelic_rpm-2.8.1 test/new_relic/agent/model_fixture.rb
newrelic_rpm-2.8.2 test/new_relic/agent/model_fixture.rb