```ruby
class Request < ActiveRecord::Base
  #eval("attr_accessible #{column_names.map { |cn| cn.to_sym }.to_s.gsub(/\[|\]/,"")}")
  set_primary_key "service_request_id"
  attr_accessible *column_names
  has_many :notes
end
```

Change set_primary_key to self.primary_key= per deprecation warning
user
```ruby
class Request < ActiveRecord::Base
  #eval("attr_accessible #{column_names.map { |cn| cn.to_sym }.to_s.gsub(/\[|\]/,"")}")
  self.primary_key = "service_request_id"
  attr_accessible *column_names
  has_many :notes
end
```
assistant