Sha256: d7836973535c58e3571570682427dd5b1c8627603e1025d5c7fcd14eec8683de

Contents?: true

Size: 279 Bytes

Versions: 8

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

ActiveRecord::Schema.define do
  create_table :posts do |t|
    t.string :title
    t.integer :user_id
  end
end

class Post < ActiveRecord::Base
  belongs_to :user
end

FactoryGirl.define do
  factory :post do
    title "Title"
    user
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
n_plus_one_control-0.3.1 spec/support/post.rb
n_plus_one_control-0.3.0 spec/support/post.rb
n_plus_one_control-0.2.1 spec/support/post.rb
n_plus_one_control-0.1.3 spec/support/post.rb
n_plus_one_control-0.1.2 spec/support/post.rb
n_plus_one_control-0.1.1 spec/support/post.rb
n_plus_one_control-0.1.0 spec/support/post.rb
n_plus_one_control-0.0.3 spec/support/post.rb