Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change seeds filename - to e.g. users.seeds.rb

  • Loading branch information...
commit bd19b078681aea66e608ecacf60e4af990439768 1 parent 2b5bf74
@ivannovosad authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/seed_dumper/writer.rb
View
2  lib/seed_dumper/writer.rb
@@ -3,7 +3,7 @@ module SeedDumper
class Writer
def self.write_data(klass_name, records)
- seed_file_name = "#{Rails.root}/db/seeds/#{klass_name.tableize}.rb"
+ seed_file_name = "#{Rails.root}/db/seeds/#{klass_name.tableize}.seeds.rb"
seed_file_dir = File.dirname(seed_file_name)
FileUtils.mkdir_p(seed_file_dir) unless File.exists?(seed_file_dir)
Please sign in to comment.
Something went wrong with that request. Please try again.