seed_data_migrations 0.0.1.12 → 0.0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  class SeedDataMigrationsGenerator < Rails::Generators::NamedBase
2
2
  source_root File.expand_path("../templates", __FILE__)
3
3
 
4
- def create_data_migration_file
4
+ def generate_seed_data_migrations
5
5
  #copy_file "seed_migrations_migration.rb", "db/seeds/#{file_name}.rb"
6
6
  create_file "db/seeds/#{next_migration_number}_#{file_name}.rb", <<-FILE
7
7
  class #{file_name.camelize} < ActiveRecord::DataMigration
@@ -12,7 +12,7 @@ end
12
12
 
13
13
  FILE
14
14
  end
15
-
15
+ private
16
16
  def next_migration_number
17
17
  Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module SeedDataMigrations
2
- VERSION = "0.0.1.12"
2
+ VERSION = "0.0.1.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seed_data_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.12
4
+ version: 0.0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: