Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support postGIS adapter for postgreSQL #1183

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

Dania02525
Copy link
Contributor

@Dania02525 Dania02525 commented Nov 17, 2023

When using the postgis adapter, this the Rails/BulkChangeTable cop interprets this as a database which does not support bulk alter statements. Since postgis is an extension for postgreSQL, it should be treated the same as postgreSQL when determining if this cop should be run.


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
  • If this is a new cop, consider making a corresponding update to the Rails Style Guide.

@Dania02525 Dania02525 force-pushed the feature/support_postgis_adapter branch from 6cadb4c to ef19404 Compare November 17, 2023 18:00
@Dania02525 Dania02525 force-pushed the feature/support_postgis_adapter branch from df298a6 to bdcc1a9 Compare November 17, 2023 18:19
remove puts

rename changelog

change wording in changelog

update pr number

Update lib/rubocop/cop/rails/bulk_change_table.rb

Co-authored-by: Koichi ITO <[email protected]>

Update changelog/new_support_postgis_adapter_for_postgresql.md

Co-authored-by: Koichi ITO <[email protected]>
@Dania02525 Dania02525 force-pushed the feature/support_postgis_adapter branch from 0668a85 to 8528cf7 Compare November 17, 2023 21:17
@koic koic merged commit 0a80ba9 into rubocop:master Nov 20, 2023
10 checks passed
@koic
Copy link
Member

koic commented Nov 20, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants