Sha256: a0b2fd2204da60350c1ec7a349433213a73f8447f949781329c81283229cd1b9
Contents?: true
Size: 675 Bytes
Versions: 16
Compression:
Stored size: 675 Bytes
Contents
FactoryGirl.define do factory :post_one, class: Hash do model_name "Post" attributes [ { attribute_name: "title", attribute_type: "string", index: true }, { attribute_name: "content", attribute_type: "text" } ] end factory :user_one, class: Hash do model_name "User" attributes [ { attribute_name: "name", attribute_type: "string", index: true, }, { attribute_name: "metadata", attribute_type: "jsonb" }, ] end factory :relation_one, class: Hash do model_one_name "User" model_two_name "Post" end end
Version data entries
16 entries across 16 versions & 1 rubygems