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-0.6.7 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.6 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.5 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.4 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.3 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.2 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.6.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.5.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.5.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.4.2 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.4.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.4.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.3.1 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.3.0 lib/strong_migrations/alphabetize_columns.rb
strong_migrations-0.2.3 lib/strong_migrations/alphabetize_columns.rb