Sha256: db919314a6815d680d563c007246c486166d4ecac7cb92ad3b86e319fc24bced
Contents?: true
Size: 378 Bytes
Versions: 6
Compression:
Stored size: 378 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.transform_a_widget(widget); true; end end
Version data entries
6 entries across 6 versions & 1 rubygems