<commit_before>
= PostgreSQL ActiveRecord Extensions

What we've got here is a collection of extensions to the ActiveRecord
PostgreSQL adapter including:

* support for constraints in migrations including CHECK constraints, foreign
  keys, unique constraints and so forth. Constraints can be added per column
  and per table.

* some methods for manipulating all sorts of stuff like procedural languages,
  functions, sequences, views, schemas and triggers.

* better support for creating indexes with expressions so you can use functions
  and GiST and GIN indexes.

* support for manipulating role privileges.

* support for some PostgreSQL-specific statements like INHERITS and LIKE when
  creating tables.

* support for automatically detecting foreign key relationships and building
  ActiveRecord associations accordingly. This associations can be overridden
  as necessary and are sane enough that they won't try to overwrite existing
  associations.

* support for some PostGIS functionality including some support for using
  PostGIS columns in migrations. For manipulating PostGIS data, see our
  geos-extensions gem at https://github.com/zoocasa/geos-extensions or
  the RGeo project at https://github.com/dazuma/rgeo .

== Building db/schema.rb

While this extension has support for creating a bunch of PostgreSQL-specific
DDL statements, it can't actually reverse the process yet to create the Ruby
equivalent code in your schema.rb file. To create a suitable schema file
that you can use for creating test databases or just to view the schema
itself, you can try switching the ActiveRecord configuration option for
schema_format from :ruby to :sql like so:

  config.active_record.schema_format = :sql

This will tell ActiveRecord to use the pg_dump utility to create a file
containing the database schema in db/development_structure.sql.

Details on this configuration option can be found here:

http://guides.rubyonrails.org/configuring.html

== License

This gem is licensed under an MIT-style license. See the +MIT-LICENSE+ file for
details.

<commit_msg>Point to the activerecord-spatial gem instead of geos-extensions.<commit_after>
= PostgreSQL ActiveRecord Extensions

What we've got here is a collection of extensions to the ActiveRecord
PostgreSQL adapter including:

* support for constraints in migrations including CHECK constraints, foreign
  keys, unique constraints and so forth. Constraints can be added per column
  and per table.

* some methods for manipulating all sorts of stuff like procedural languages,
  functions, sequences, views, schemas and triggers.

* better support for creating indexes with expressions so you can use functions
  and GiST and GIN indexes.

* support for manipulating role privileges.

* support for some PostgreSQL-specific statements like INHERITS and LIKE when
  creating tables.

* support for automatically detecting foreign key relationships and building
  ActiveRecord associations accordingly. This associations can be overridden
  as necessary and are sane enough that they won't try to overwrite existing
  associations.

* support for some PostGIS functionality including some support for using
  PostGIS columns in migrations. For manipulating PostGIS data, see our
  activerecord-spatial gem at https://github.com/zoocasa/activerecord-spatial
  or the RGeo project at https://github.com/dazuma/rgeo .

== Building db/schema.rb

While this extension has support for creating a bunch of PostgreSQL-specific
DDL statements, it can't actually reverse the process yet to create the Ruby
equivalent code in your schema.rb file. To create a suitable schema file
that you can use for creating test databases or just to view the schema
itself, you can try switching the ActiveRecord configuration option for
schema_format from :ruby to :sql like so:

  config.active_record.schema_format = :sql

This will tell ActiveRecord to use the pg_dump utility to create a file
containing the database schema in db/development_structure.sql.

Details on this configuration option can be found here:

http://guides.rubyonrails.org/configuring.html

== License

This gem is licensed under an MIT-style license. See the +MIT-LICENSE+ file for
details.


{'fraction_non_alphanumeric': 0.03968631178707224, 'fraction_numerical': 0.0, 'mean_word_length': 4.664872139973082, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7093905', 'n_tokens_mistral': 1056, 'n_tokens_neox': 999, 'n_words': 547}