Sha256: a56d84ad89dd077dd8ba1a1e7c186d8dcdff32ad1fcf157ccbf45900a54be7f6
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
# This file should contain all the record creation needed to populate sample data to use the application. The # data created here differs from the data created in db/seeds.rb as we don't expect the script to be idempotent # and assume that the script might be executed multiple times. # # The data can then be loaded with the bin/rails db:sample command. # # Examples: # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rsg-0.1.0 | lib/rsg/generators/orm/templates/samples.rb.tt |
rsg-0.0.1 | lib/rsg/generators/orm/templates/samples.rb |