Sha256: 9348be09b82f1d43882e8a788249e995005fcd85dedc23adf871186f3a1e49f5

Contents?: true

Size: 398 Bytes

Versions: 64

Compression:

Stored size: 398 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2017

class Block < ActiveRecord::Base
  def do_work(*args)
    block = Block.first
    block.name = "Charlie"
    block.color = "Black"
    block.save
  end
end

class CreateBlocks < ActiveRecord::Migration[4.2]
  def change
    create_table :blocks do |t|
      t.string :name
      t.string :color
      t.timestamps
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.195.1 test/support/apps/rails/models/block.rb
instana-1.195.0 test/support/apps/rails/models/block.rb
instana-1.193.6 test/support/apps/rails/models/block.rb
instana-1.193.5 test/support/apps/rails/models/block.rb