Sha256: ce95ac121ed34426b805c445b5b05e3d37f3e746f151742d6c4d181026cfa360

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

class WatchtowerGenerator < Rails::Generator::Base
  def manifest
    record do |m|
      unless ActiveRecord::Base.connection.table_exists?(:watched_exceptions)
        m.migration_template "migrations/create_watched_exceptions.rb",
                             'db/migrate',
                             :migration_file_name => "create_watched_exceptions"
      end
      m.readme "README"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joshuaclayton-watchtower-0.1.2 generators/watchtower/watchtower_generator.rb
joshuaclayton-watchtower-0.1.3 generators/watchtower/watchtower_generator.rb
joshuaclayton-watchtower-0.1.4 generators/watchtower/watchtower_generator.rb