Changeset [a1c40c9a38dae136b76565c36c7049327f46e797] by Darcy Brown

July 7th, 2008 @ 06:19 PM

Optionally do not overwrite seed data if it already exists. In many cases production servers will update data and be authoritative; therefore overwriting in these cases isn't what you want.

To not overwrite and just insert if not existing, use: Content.seed(:data_key, true) do |s|...end

Committed by Darcy Brown

  • M lib/seeder.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

An attempt to simplify the usage of seed data in Rails applications through a dead simple API.