Sha256: 0b4cf7270a101f71ee0ecc45938075c7dcc8462b6e19955681218af793078594

Contents?: true

Size: 301 Bytes

Versions: 8

Compression:

Stored size: 301 Bytes

Contents

class SettingsMigrationGenerator < Rails::Generator::NamedBase
  def initialize(runtime_args, runtime_options = {})
    runtime_args << 'create_settings' if runtime_args.empty?
    super
  end
 
  def manifest
    record do |m|
      m.migration_template 'migration.rb', 'db/migrate'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
settings-goo-0.3.5 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.3.4 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.3.3 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.3.2 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.3.1 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.3.0 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.2.0 generators/settings_migration/settings_migration_generator.rb
settings-goo-0.1.0 generators/settings_migration/settings_migration_generator.rb