Sha256: 0a61db3c5e23648ecf71f2acef5bff517bc74a487e7b9043d78bc8f01b20b7ba
Contents?: true
Size: 791 Bytes
Versions: 3
Compression:
Stored size: 791 Bytes
Contents
# Somehow the Padrino::Reloader v14 is detecting and loading # this file when it shouldn't. Block it from loading for # Padrino for now. unless defined?(Padrino) class Widget < ActiveRecord::Base def do_work(*args) Widget.first end def do_error(*args) raise "FakeTestError" end end if Rails.version >= '5.1' class CreateWidgets < ActiveRecord::Migration[5.1] def change create_table :widgets do |t| t.string :name t.text :description t.timestamps end end end else class CreateWidgets < ActiveRecord::Migration def change create_table :widgets do |t| t.string :name t.text :description t.timestamps end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appoptics_apm-4.0.3 | test/models/widget.rb |
appoptics_apm-4.0.2 | test/models/widget.rb |
appoptics_apm-4.0.1-x86_64-linux | test/models/widget.rb |