Sha256: 70e7387383956eb566f60685c93969bf7ef6ab13a5c7bf393db0fba9d91ada44
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
require 'active_record' ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" ActiveRecord::Migration.create_table :widgets do |t| t.string :name t.timestamps end class Widget < ActiveRecord::Base # some dummy methods for setting message expectations in specs def self.before_stuff; end def self.after_batch_stuff(batch); end def self.transform_a_widget(widget); true; end end
Version data entries
5 entries across 5 versions & 1 rubygems