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 rails 7.1 #208

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

alpaca-tc
Copy link
Contributor

Today rails7.1.0.beta1 has been released, I have added support for activerecord-multitenant.
The changes are as follows.

  • Added rails7.1 as a test target
  • changed to use Arel::Nodes::Table#table_name since Arel::Nodes::Table#name has been removed

The `table_name` method was defined in `Arel::Nodes::Table` and `Arel::Nodes::TableAlias` to get the table name, but `Arel::Nodes::Table#table_name` was removed  rails/rails#46864.
Therefore, it is no longer possible to simply call `#table_name` to get `table_name`, so a `TableNode.table_name` has been added to get table_name from node.
@alpaca-tc alpaca-tc changed the title Support rails 7 1 Support rails 7.1 Sep 13, 2023
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #208 (e8ae83e) into master (100ac67) will increase coverage by 0.16%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master     #208      +/-   ##
==========================================
+ Coverage   82.68%   82.85%   +0.16%     
==========================================
  Files          14       15       +1     
  Lines         722      729       +7     
==========================================
+ Hits          597      604       +7     
  Misses        125      125              
Files Changed Coverage Δ
lib/activerecord-multi-tenant/query_rewriter.rb 92.30% <77.77%> (ø)
lib/activerecord-multi-tenant/multi_tenant.rb 88.15% <100.00%> (ø)
lib/activerecord-multi-tenant/table_node.rb 100.00% <100.00%> (ø)
lib/activerecord_multi_tenant.rb 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@gurkanindibay gurkanindibay merged commit 648f353 into citusdata:master Sep 14, 2023
@gurkanindibay
Copy link
Contributor

thanks @alpaca-tc for the contribution

@alpaca-tc alpaca-tc deleted the support-rails-7-1 branch September 14, 2023 07:07
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.

3 participants