Sha256: ec5fbbc1bddcaa43c49e12774264bd19bf5ccd238689c605329e0e1784727c51

Contents?: true

Size: 643 Bytes

Versions: 14

Compression:

Stored size: 643 Bytes

Contents

namespace :strong_migrations do
  # https://www.pgrs.net/2008/03/13/alphabetize-schema-rb-columns/
  task :alphabetize_columns do
    $stderr.puts "Dumping schema"
    ActiveRecord::Base.logger.level = Logger::INFO

    require "strong_migrations/alphabetize_columns"
    ActiveRecord::Base.connection.class.prepend StrongMigrations::AlphabetizeColumns
    if ActiveRecord::ConnectionAdapters.const_defined?('PostGISAdapter')
      ActiveRecord::ConnectionAdapters::PostGISAdapter.prepend StrongMigrations::AlphabetizeColumns
    end
    ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend StrongMigrations::AlphabetizeColumns
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
strong_migrations-1.2.0 lib/tasks/strong_migrations.rake
strong_migrations-1.1.0 lib/tasks/strong_migrations.rake
strong_migrations-1.0.0 lib/tasks/strong_migrations.rake
strong_migrations-0.8.0 lib/tasks/strong_migrations.rake
strong_migrations-0.7.9 lib/tasks/strong_migrations.rake
strong_migrations-0.7.8 lib/tasks/strong_migrations.rake
strong_migrations-0.7.7 lib/tasks/strong_migrations.rake
strong_migrations-0.7.6 lib/tasks/strong_migrations.rake
strong_migrations-0.7.5 lib/tasks/strong_migrations.rake
strong_migrations-0.7.4 lib/tasks/strong_migrations.rake
strong_migrations-0.7.3 lib/tasks/strong_migrations.rake
strong_migrations-0.7.2 lib/tasks/strong_migrations.rake
strong_migrations-0.7.1 lib/tasks/strong_migrations.rake
strong_migrations-0.7.0 lib/tasks/strong_migrations.rake