We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This page describes how to write scripts load data into the database.
If a file db/loader.rb exists it will be run after the PIQL entities and Rails models have been loaded. Here is a simple loader.rb example:
db/loader.rb
loader.rb
names = ["Alice", "Bob", "Calvin"] names.each do |n| u = User.new u.name = n u.save($piql_env) end