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