Sha256: c038fd6925895ec5cee50b0ab5759ca48dbb9d08bbc1bf172a36f2eb977a15ff

Contents?: true

Size: 173 Bytes

Versions: 36

Compression:

Stored size: 173 Bytes

Contents

module StrongMigrations
  module AlphabetizeColumns
    def columns(*args)
      super.sort_by(&:name)
    end

    def extensions(*args)
      super.sort
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
strong_migrations-1.4.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.4.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.3.2 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.3.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.3.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.2.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.1.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-1.0.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.8.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.9 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.8 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.7 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.6 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.5 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.4 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.3 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.2 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.7.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.8 lib/strong_migrations/alphabetize_columns.rb