Sha256: 0f53ea936d346e17359d1c8de0a6c63d4ad8e98cf22112f8aec6b2b22f1431e2
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
class <%= file_name.camelize %>Seed < AmbitiousSeeder::Seed def self.up # Interact with classes as normal here, eg: # Product.create(:sku => '1234') end def self.down # If possible, reverse the migration. # Product.delete(Product.where(:sku => '1234')) # You may also want to consider any associations, and whether they should deleted automatically, or manually in this method. # If it's not possible (or not a good idea) to reverse this migration, remove the method :) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ambitious_seeder-0.1.0 | lib/generators/rails/seed/templates/template_seed.rb |