Sha256: f8649b6028201a782ecbabb6979ded230b683be2045ad2a8460ea64f593b03f4
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true require_relative 'spec_helper' require_relative 'support/paging_shared_example' require 'active_record' ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:' ActiveRecord::Schema.define do self.verbose = false create_table :products, force: true do |t| t.string :name t.integer :category_id t.integer :price t.timestamps null: true end create_table :categories, force: true do |t| t.string :name t.timestamps null: true end end class Product < ActiveRecord::Base belongs_to :category end class Category < ActiveRecord::Base end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
search_object-1.2.5 | spec/spec_helper_active_record.rb |
search_object-1.2.4 | spec/spec_helper_active_record.rb |
search_object-1.2.3 | spec/spec_helper_active_record.rb |