Sha256: 7ab0ba76050454b7d0fdecdb761e0513bff4e2aa143d9b5581a90fb89a84e0a3

Contents?: true

Size: 523 Bytes

Versions: 13

Compression:

Stored size: 523 Bytes

Contents

# class NetzkeCoreGenerator < Rails::Generator::NamedBase
class NetzkeCoreGenerator < Rails::Generator::Base
  def manifest
    record do |m|
      # FIXME: how do we avoid getting the same migration timestamps?
      # Work-around
      time = Time.now.utc.strftime("%Y%m%d%H%M%S")
      m.directory 'db/migrate'
      # m.file 'create_netzke_layouts.rb', "db/migrate/#{time}_create_netzke_layouts.rb"
      m.file 'create_netzke_preferences.rb', "db/migrate/#{time.to_i+1}_create_netzke_preferences.rb"
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
skozlov-netzke-core-0.4.1 generators/netzke_core/netzke_core_generator.rb
skozlov-netzke-core-0.4.2 generators/netzke_core/netzke_core_generator.rb
skozlov-netzke-core-0.4.3 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.5.1 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.5.0 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.4.5.2 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.4.5.1 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.4.5 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.4.4 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.4.2 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.4.3 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.3.1 generators/netzke_core/netzke_core_generator.rb
netzke-core-0.3.0 generators/netzke_core/netzke_core_generator.rb