ros-apartment 2.7.0 → 2.8.1.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +78 -0
  3. data/.github/workflows/changelog.yml +63 -0
  4. data/.rubocop.yml +78 -4
  5. data/.rubocop_todo.yml +50 -13
  6. data/CHANGELOG.md +963 -0
  7. data/Gemfile +2 -2
  8. data/Guardfile +0 -15
  9. data/HISTORY.md +118 -84
  10. data/README.md +27 -0
  11. data/Rakefile +5 -2
  12. data/gemfiles/rails_5_0.gemfile +1 -1
  13. data/gemfiles/rails_5_1.gemfile +1 -1
  14. data/gemfiles/rails_5_2.gemfile +1 -1
  15. data/gemfiles/rails_6_0.gemfile +1 -1
  16. data/gemfiles/rails_master.gemfile +1 -1
  17. data/lib/apartment.rb +5 -3
  18. data/lib/apartment/active_record/connection_handling.rb +3 -0
  19. data/lib/apartment/active_record/internal_metadata.rb +0 -2
  20. data/lib/apartment/active_record/schema_migration.rb +0 -2
  21. data/lib/apartment/adapters/abstract_adapter.rb +5 -3
  22. data/lib/apartment/adapters/abstract_jdbc_adapter.rb +2 -1
  23. data/lib/apartment/adapters/jdbc_postgresql_adapter.rb +2 -1
  24. data/lib/apartment/adapters/mysql2_adapter.rb +3 -0
  25. data/lib/apartment/adapters/postgresql_adapter.rb +30 -7
  26. data/lib/apartment/console.rb +5 -9
  27. data/lib/apartment/custom_console.rb +2 -2
  28. data/lib/apartment/log_subscriber.rb +33 -0
  29. data/lib/apartment/railtie.rb +26 -21
  30. data/lib/apartment/tasks/enhancements.rb +1 -1
  31. data/lib/apartment/tasks/task_helper.rb +7 -2
  32. data/lib/apartment/tenant.rb +6 -18
  33. data/lib/apartment/version.rb +1 -1
  34. data/lib/generators/apartment/install/templates/apartment.rb +2 -1
  35. data/lib/tasks/apartment.rake +5 -6
  36. data/{apartment.gemspec → ros-apartment.gemspec} +3 -4
  37. metadata +14 -12
  38. data/.travis.yml +0 -49
  39. data/lib/apartment/active_record/log_subscriber.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c5ea61531091303bdf3ab60326eadb7ffda6ea92b03079fd8a93583067037c7
4
- data.tar.gz: 95c482e8304a914d6098f1f4ea498f93e1a4827d851e4ea4a283f18ca51079ae
3
+ metadata.gz: f4eae53ab581ffa6402db4640424f23f864b8a4f72a1cf38bd35dc200fc014bf
4
+ data.tar.gz: f0ca3c1ae5102e4aa644aab5758543032455d6266fc86c5b3d97bb6e21eab731
5
5
  SHA512:
6
- metadata.gz: '09f36cbd0d164f3f692aaf9b2a60b55aa5289537b07c299e49d651a1f1fe6aba6a8d67578076ccad94c2ad62bcaf46e74900c532664f696d1dd4ae673fb49d1d'
7
- data.tar.gz: b38b9708487fa0e64c93d8349f922dafe2678b09020f5c5a5e77aca5acff4510254737094636d3c25a03e57e76280a20c403fe4021b6e64bcb3e9956b4a77acb
6
+ metadata.gz: f4bca612be122515d41ab388cf1bc22d96216b0baa8178a6d6d1a52418c932bcafe97f4089dfc1eff3725544ee1044391772f35935b86caf67c66d311e85c7ac
7
+ data.tar.gz: fb489d69d50d6caea7c3a19be53b8e693fb8ea24782c8850eb4efca070eecce7364f3f2fc7d8f17a37e93caeed6a08ef6cfad3dbd7c47857c91442803e44e51c
@@ -0,0 +1,78 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ rubocop: hanachin/rubocop@0.0.6
5
+
6
+ jobs:
7
+ build:
8
+ docker:
9
+ - image: circleci/<< parameters.ruby_version >>
10
+ - image: circleci/postgres:9.6.2-alpine
11
+ - image: circleci/mysql:5.7
12
+ environment:
13
+ MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
14
+ parameters:
15
+ ruby_version:
16
+ type: string
17
+ gemfile:
18
+ type: string
19
+ environment:
20
+ BUNDLE_GEMFILE: << parameters.gemfile >>
21
+ steps:
22
+ - checkout
23
+ # Restore Cached Dependencies
24
+ # - restore_cache:
25
+ # keys:
26
+ # - gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "<< parameters.gemfile >>.lock" }}
27
+ # - gem-cache-v1-{{ arch }}-{{ .Branch }}
28
+ # - gem-cache-v1
29
+
30
+ - run: bundle install --path vendor/bundle
31
+
32
+ # - save_cache:
33
+ # key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "<< parameters.gemfile >>.lock" }}
34
+ # paths:
35
+ # - vendor/bundle
36
+
37
+ - run:
38
+ name: Install postgres client
39
+ command: sudo apt install -y postgresql-client
40
+
41
+ - run:
42
+ name: Install mysql client
43
+ command: sudo apt install -y default-mysql-client
44
+
45
+ - run:
46
+ name: Configure config database.yml
47
+ command: bundle exec rake db:copy_credentials
48
+
49
+ - run:
50
+ name: wait for postgresql
51
+ command: dockerize -wait tcp://localhost:5432 -timeout 1m
52
+
53
+ - run:
54
+ name: wait for mysql
55
+ command: dockerize -wait tcp://localhost:3306 -timeout 1m
56
+
57
+ - run:
58
+ name: Database Setup
59
+ command: |
60
+ bundle exec rake db:test:prepare
61
+
62
+ - run:
63
+ name: Run tests
64
+ command: bundle exec rspec
65
+
66
+ workflows:
67
+ tests:
68
+ jobs:
69
+ - build:
70
+ matrix:
71
+ parameters:
72
+ ruby_version: ["ruby:2.6-buster", "ruby:2.7-buster"]
73
+ gemfile: ["gemfiles/rails_5_2.gemfile", "gemfiles/rails_6_0.gemfile"]
74
+
75
+ rubocop:
76
+ jobs:
77
+ - rubocop/rubocop:
78
+ version: 0.88.0
@@ -0,0 +1,63 @@
1
+ name: Changelog
2
+
3
+ on:
4
+ pull_request:
5
+ types: [closed]
6
+
7
+ release:
8
+ types: [published]
9
+
10
+ issues:
11
+ types: [closed, edited]
12
+
13
+ jobs:
14
+ generate_changelog:
15
+ runs-on: ubuntu-latest
16
+ name: Generate changelog for master branch
17
+ steps:
18
+ - uses: actions/checkout@v2
19
+ with:
20
+ fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
21
+
22
+ - name: Generate changelog
23
+ uses: charmixer/auto-changelog-action@v1
24
+ with:
25
+ token: ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name: Commit files
28
+ env:
29
+ ACTION_EMAIL: action@github.com
30
+ ACTION_USERNAME: GitHub Action
31
+ run: |
32
+ git config --local user.email "$ACTION_EMAIL"
33
+ git config --local user.name "$ACTION_USERNAME"
34
+ git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-env name=push::1 || echo "No changes to CHANGELOG.md"
35
+
36
+ - name: Push changes
37
+ if: env.push == 1
38
+ env:
39
+ # CI_USER: ${{ secrets.YOUR_GITHUB_USER }}
40
+ CI_TOKEN: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
41
+ run: |
42
+ git push "https://$GITHUB_ACTOR:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:master
43
+
44
+ # - name: Push changelog to master
45
+ # if: env.push == 1
46
+ # uses: ad-m/github-push-action@master
47
+ # with:
48
+ # github_token: ${{ secrets.CHANGELOG_GITHUB_TOKEN }}
49
+ # branch: master
50
+
51
+ # - name: Cherry-pick changelog to development
52
+ # if: env.push == 1
53
+ # env:
54
+ # ACTION_EMAIL: action@github.com
55
+ # ACTION_USERNAME: GitHub Action
56
+ # run: |
57
+ # git config --local user.email "$ACTION_EMAIL"
58
+ # git config --local user.name "$ACTION_USERNAME"
59
+ # commit_hash=`git show HEAD | egrep commit\ .+$ | cut -d' ' -f2`
60
+ # git checkout development
61
+ # git pull
62
+ # git cherry-pick $commit_hash
63
+ # git push
@@ -1,13 +1,14 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
- inherit_gem:
4
- perx-rubocop:
5
- - default.yml
6
-
7
3
  AllCops:
8
4
  Exclude:
9
5
  - 'gemfiles/**/*.gemfile'
10
6
  - 'gemfiles/vendor/**/*'
7
+ - 'spec/dummy_engine/dummy_engine.gemspec'
8
+
9
+ Gemspec/RequiredRubyVersion:
10
+ Exclude:
11
+ - 'ros-apartment.gemspec'
11
12
 
12
13
  Style/WordArray:
13
14
  Exclude:
@@ -20,3 +21,76 @@ Style/NumericLiterals:
20
21
  Layout/EmptyLineAfterMagicComment:
21
22
  Exclude:
22
23
  - spec/schemas/**/*.rb
24
+
25
+ Metrics/BlockLength:
26
+ Exclude:
27
+ - spec/**/*.rb
28
+
29
+ Layout/EmptyLinesAroundAttributeAccessor:
30
+ Enabled: true
31
+
32
+ Layout/SpaceAroundMethodCallOperator:
33
+ Enabled: true
34
+
35
+ Lint/DeprecatedOpenSSLConstant:
36
+ Enabled: true
37
+
38
+ Lint/DuplicateElsifCondition:
39
+ Enabled: true
40
+
41
+ Lint/MixedRegexpCaptureTypes:
42
+ Enabled: true
43
+
44
+ Lint/RaiseException:
45
+ Enabled: true
46
+
47
+ Lint/StructNewOverride:
48
+ Enabled: true
49
+
50
+ Style/AccessorGrouping:
51
+ Enabled: true
52
+
53
+ Style/ArrayCoercion:
54
+ Enabled: true
55
+
56
+ Style/BisectedAttrAccessor:
57
+ Enabled: true
58
+
59
+ Style/CaseLikeIf:
60
+ Enabled: true
61
+
62
+ Style/ExponentialNotation:
63
+ Enabled: true
64
+
65
+ Style/HashAsLastArrayItem:
66
+ Enabled: true
67
+
68
+ Style/HashEachMethods:
69
+ Enabled: true
70
+
71
+ Style/HashLikeCase:
72
+ Enabled: true
73
+
74
+ Style/HashTransformKeys:
75
+ Enabled: true
76
+
77
+ Style/HashTransformValues:
78
+ Enabled: true
79
+
80
+ Style/RedundantAssignment:
81
+ Enabled: true
82
+
83
+ Style/RedundantFetchBlock:
84
+ Enabled: true
85
+
86
+ Style/RedundantFileExtensionInRequire:
87
+ Enabled: true
88
+
89
+ Style/RedundantRegexpCharacterClass:
90
+ Enabled: true
91
+
92
+ Style/RedundantRegexpEscape:
93
+ Enabled: true
94
+
95
+ Style/SlicingWithRange:
96
+ Enabled: true
@@ -1,29 +1,66 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-02-16 15:36:55 +0800 using RuboCop version 0.77.0.
3
+ # on 2020-07-16 04:15:41 UTC using RuboCop version 0.88.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 5
9
+ # Offense count: 1
10
+ Lint/MixedRegexpCaptureTypes:
11
+ Exclude:
12
+ - 'lib/apartment/elevators/domain.rb'
13
+
14
+ # Offense count: 2
15
+ # Cop supports --auto-correct.
16
+ Lint/NonDeterministicRequireOrder:
17
+ Exclude:
18
+ - 'spec/spec_helper.rb'
19
+
20
+ # Offense count: 7
21
+ # Configuration parameters: IgnoredMethods.
10
22
  Metrics/AbcSize:
11
23
  Max: 33
12
24
 
13
- # Offense count: 11
14
- # Configuration parameters: CountComments, ExcludedMethods.
25
+ # Offense count: 3
26
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
15
27
  # ExcludedMethods: refine
16
28
  Metrics/BlockLength:
17
- Max: 176
29
+ Max: 102
18
30
 
19
- # Offense count: 18
20
- # Cop supports --auto-correct.
21
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
22
- # URISchemes: http, https
23
- Metrics/LineLength:
24
- Max: 200
31
+ # Offense count: 1
32
+ # Configuration parameters: CountComments, CountAsOne.
33
+ Metrics/ClassLength:
34
+ Max: 151
25
35
 
26
- # Offense count: 4
27
- # Configuration parameters: CountComments, ExcludedMethods.
36
+ # Offense count: 6
37
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
28
38
  Metrics/MethodLength:
29
39
  Max: 24
40
+
41
+ # Offense count: 17
42
+ Style/Documentation:
43
+ Exclude:
44
+ - 'spec/**/*'
45
+ - 'test/**/*'
46
+ - 'lib/apartment/adapters/jdbc_mysql_adapter.rb'
47
+ - 'lib/apartment/adapters/postgis_adapter.rb'
48
+ - 'lib/apartment/adapters/postgresql_adapter.rb'
49
+ - 'lib/apartment/adapters/sqlite3_adapter.rb'
50
+ - 'lib/apartment/custom_console.rb'
51
+ - 'lib/apartment/deprecation.rb'
52
+ - 'lib/apartment/migrator.rb'
53
+ - 'lib/apartment/model.rb'
54
+ - 'lib/apartment/railtie.rb'
55
+ - 'lib/apartment/reloader.rb'
56
+ - 'lib/apartment/tasks/enhancements.rb'
57
+ - 'lib/apartment/tasks/task_helper.rb'
58
+ - 'lib/generators/apartment/install/install_generator.rb'
59
+
60
+ # Offense count: 3
61
+ # Cop supports --auto-correct.
62
+ Style/IfUnlessModifier:
63
+ Exclude:
64
+ - 'Rakefile'
65
+ - 'lib/apartment.rb'
66
+ - 'lib/apartment/tenant.rb'
@@ -0,0 +1,963 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased](https://github.com/rails-on-services/apartment/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.8.0...HEAD)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ **Fixed bugs:**
10
+
11
+ - New version raises an error with ActiveSupport::LogSubscriber [#128](https://github.com/rails-on-services/apartment/issues/128)
12
+ - Weird logs when tenant fails to create [#127](<https://github.com/rails-on-services/apartment/issues/127>)
13
+
14
+ **Closed issues:**
15
+
16
+ ## [v2.8.0](https://github.com/rails-on-services/apartment/tree/v2.8.0) (2020-12-16)
17
+
18
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.7.2...v2.8.0)
19
+
20
+ **Implemented enhancements:**
21
+
22
+ - Uses a transaction to create a tenant [#66](https://github.com/rails-on-services/apartment/issues/66)
23
+
24
+ **Fixed bugs:**
25
+
26
+ - Fix seeding errors [#86](https://github.com/rails-on-services/apartment/issues/86)
27
+ - When tests run in a transaction, new tenants in tests fail to create [#123](https://github.com/rails-on-services/apartment/issues/123)
28
+ - Reverted unsafe initializer - introduces the possibility of disabling the initial connection to the database via
29
+ environment variable. Relates to the following tickets/PRs:
30
+ - [#113](https://github.com/rails-on-services/apartment/issues/113)
31
+ - [#39](https://github.com/rails-on-services/apartment/pull/39)
32
+ - [#53](https://github.com/rails-on-services/apartment/pull/53)
33
+ - [#118](https://github.com/rails-on-services/apartment/pull/118)
34
+
35
+ **Closed issues:**
36
+
37
+ - Improve changelog automatic generation [#98](https://github.com/rails-on-services/apartment/issues/98)
38
+ - Relaxes dependencies to allow rails 6.1 [#121](https://github.com/rails-on-services/apartment/issues/121)
39
+
40
+
41
+ ## [v2.7.2](https://github.com/rails-on-services/apartment/tree/v2.7.2) (2020-07-17)
42
+
43
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.7.1...v2.7.2)
44
+
45
+ **Implemented enhancements:**
46
+
47
+ - Deprecate History.md [\#80](https://github.com/rails-on-services/apartment/issues/80)
48
+
49
+ **Fixed bugs:**
50
+
51
+ - Tenant.switch! raises exception on first call / Postgresql [\#92](https://github.com/rails-on-services/apartment/issues/92)
52
+ - NameError: instance variable @sequence\_name not defined [\#81](https://github.com/rails-on-services/apartment/issues/81)
53
+
54
+ **Closed issues:**
55
+
56
+ - Error creating tenant with uuid column [\#85](https://github.com/rails-on-services/apartment/issues/85)
57
+ - enhanced db:create task breaks plugins compatibility [\#82](https://github.com/rails-on-services/apartment/issues/82)
58
+ - Support disabling of full\_migration\_on\_create [\#30](https://github.com/rails-on-services/apartment/issues/30)
59
+
60
+ **Merged pull requests:**
61
+
62
+ - \[Chore\] Fix Changelog github action [\#97](https://github.com/rails-on-services/apartment/pull/97) ([rpbaltazar](https://github.com/rpbaltazar))
63
+ - Prepare release - 2.7.2 [\#96](https://github.com/rails-on-services/apartment/pull/96) ([rpbaltazar](https://github.com/rpbaltazar))
64
+ - \[Resolves \#92\] tenant switch raises exception on first call [\#95](https://github.com/rails-on-services/apartment/pull/95) ([rpbaltazar](https://github.com/rpbaltazar))
65
+ - Dont use custom rubocop [\#94](https://github.com/rails-on-services/apartment/pull/94) ([rpbaltazar](https://github.com/rpbaltazar))
66
+ - \[Resolves \#80\] added changelog action [\#90](https://github.com/rails-on-services/apartment/pull/90) ([rpbaltazar](https://github.com/rpbaltazar))
67
+ - \[Resolves \#81\] check for var existence before [\#89](https://github.com/rails-on-services/apartment/pull/89) ([rpbaltazar](https://github.com/rpbaltazar))
68
+
69
+ ## [v2.7.1](https://github.com/rails-on-services/apartment/tree/v2.7.1) (2020-06-27)
70
+
71
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.7.0...v2.7.1)
72
+
73
+ **Merged pull requests:**
74
+
75
+ - Prepare Release 2.7.1 [\#84](https://github.com/rails-on-services/apartment/pull/84) ([rpbaltazar](https://github.com/rpbaltazar))
76
+ - \[Resolves \#82\] Enhanced db create task breaks plugins compatibility [\#83](https://github.com/rails-on-services/apartment/pull/83) ([rpbaltazar](https://github.com/rpbaltazar))
77
+ - \[ci\] update rake [\#79](https://github.com/rails-on-services/apartment/pull/79) ([ahorek](https://github.com/ahorek))
78
+
79
+ ## [v2.7.0](https://github.com/rails-on-services/apartment/tree/v2.7.0) (2020-06-26)
80
+
81
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.6.1...v2.7.0)
82
+
83
+ **Implemented enhancements:**
84
+
85
+ - Rake tasks define methods on main [\#70](https://github.com/rails-on-services/apartment/issues/70)
86
+
87
+ **Fixed bugs:**
88
+
89
+ - Undefined method devise with 2.6.1 [\#65](https://github.com/rails-on-services/apartment/issues/65)
90
+ - db:create is failed [\#61](https://github.com/rails-on-services/apartment/issues/61)
91
+
92
+ **Closed issues:**
93
+
94
+ - configure story branch [\#68](https://github.com/rails-on-services/apartment/issues/68)
95
+ - HISTORY.md has not been updated for latest releases [\#62](https://github.com/rails-on-services/apartment/issues/62)
96
+ - \[Postgresql users\] Help testing development branch in your environment [\#34](https://github.com/rails-on-services/apartment/issues/34)
97
+
98
+ **Merged pull requests:**
99
+
100
+ - Prepare Release - 2.7.0 [\#77](https://github.com/rails-on-services/apartment/pull/77) ([rpbaltazar](https://github.com/rpbaltazar))
101
+ - \[Fixes \#61\] db create is failed [\#76](https://github.com/rails-on-services/apartment/pull/76) ([rpbaltazar](https://github.com/rpbaltazar))
102
+ - \[Resolves \#70\] rake tasks define methods on main [\#75](https://github.com/rails-on-services/apartment/pull/75) ([rpbaltazar](https://github.com/rpbaltazar))
103
+ - \[Chore\] Update travis config to run rubocop [\#74](https://github.com/rails-on-services/apartment/pull/74) ([rpbaltazar](https://github.com/rpbaltazar))
104
+ - Remove and warn depracated config `tld\_length` [\#72](https://github.com/rails-on-services/apartment/pull/72) ([choznerol](https://github.com/choznerol))
105
+ - \[Resolves \#62\] added Missing notes in history.md [\#63](https://github.com/rails-on-services/apartment/pull/63) ([rpbaltazar](https://github.com/rpbaltazar))
106
+ - Add database and schema to active record log [\#55](https://github.com/rails-on-services/apartment/pull/55) ([woohoou](https://github.com/woohoou))
107
+
108
+ ## [v2.6.1](https://github.com/rails-on-services/apartment/tree/v2.6.1) (2020-06-02)
109
+
110
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.6.0...v2.6.1)
111
+
112
+ **Closed issues:**
113
+
114
+ - db:rollback uses second latest migration for tenants [\#56](https://github.com/rails-on-services/apartment/issues/56)
115
+ - rake db:setup tries to seed non existing tenant [\#52](https://github.com/rails-on-services/apartment/issues/52)
116
+ - Custom Console deprecation warning [\#37](https://github.com/rails-on-services/apartment/issues/37)
117
+
118
+ **Merged pull requests:**
119
+
120
+ - Version bump - 2.6.1 [\#60](https://github.com/rails-on-services/apartment/pull/60) ([rpbaltazar](https://github.com/rpbaltazar))
121
+ - Prepare Release - 2.6.1 [\#59](https://github.com/rails-on-services/apartment/pull/59) ([rpbaltazar](https://github.com/rpbaltazar))
122
+ - \[\#56\] Db rollback uses second latest migration [\#57](https://github.com/rails-on-services/apartment/pull/57) ([rpbaltazar](https://github.com/rpbaltazar))
123
+ - \[\#52\] enhance after db create [\#54](https://github.com/rails-on-services/apartment/pull/54) ([rpbaltazar](https://github.com/rpbaltazar))
124
+ - fix init after reload on development [\#53](https://github.com/rails-on-services/apartment/pull/53) ([fsateler](https://github.com/fsateler))
125
+ - fix: reset sequence\_name after tenant switch [\#51](https://github.com/rails-on-services/apartment/pull/51) ([fsateler](https://github.com/fsateler))
126
+ - Avoid early connection [\#39](https://github.com/rails-on-services/apartment/pull/39) ([fsateler](https://github.com/fsateler))
127
+
128
+ ## [v2.6.0](https://github.com/rails-on-services/apartment/tree/v2.6.0) (2020-05-14)
129
+
130
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.5.0...v2.6.0)
131
+
132
+ **Closed issues:**
133
+
134
+ - Error Dropping Tenant [\#46](https://github.com/rails-on-services/apartment/issues/46)
135
+ - After switch callback not working with nil argument [\#42](https://github.com/rails-on-services/apartment/issues/42)
136
+ - Add tenant info to console boot? [\#41](https://github.com/rails-on-services/apartment/issues/41)
137
+ - Support configuration for skip checking of schema existence before switching [\#26](https://github.com/rails-on-services/apartment/issues/26)
138
+
139
+ **Merged pull requests:**
140
+
141
+ - \[Resolves \#37\] Custom console deprecation warning [\#49](https://github.com/rails-on-services/apartment/pull/49) ([rpbaltazar](https://github.com/rpbaltazar))
142
+ - Prepare Release 2.6.0 [\#48](https://github.com/rails-on-services/apartment/pull/48) ([rpbaltazar](https://github.com/rpbaltazar))
143
+ - Add console welcome message [\#47](https://github.com/rails-on-services/apartment/pull/47) ([JeremiahChurch](https://github.com/JeremiahChurch))
144
+ - \[Resolves \#26\] Support configuration for skip checking of schema existence before switching [\#45](https://github.com/rails-on-services/apartment/pull/45) ([rpbaltazar](https://github.com/rpbaltazar))
145
+ - \[Resolves \#42\] After switch callback not working with nil argument [\#43](https://github.com/rails-on-services/apartment/pull/43) ([rpbaltazar](https://github.com/rpbaltazar))
146
+
147
+ ## [v2.5.0](https://github.com/rails-on-services/apartment/tree/v2.5.0) (2020-05-05)
148
+
149
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/2.4.0...v2.5.0)
150
+
151
+ **Implemented enhancements:**
152
+
153
+ - Add latest ruby verisons to test matrix [\#31](https://github.com/rails-on-services/apartment/issues/31)
154
+ - Deprecate EOL ruby and rails versions [\#11](https://github.com/rails-on-services/apartment/issues/11)
155
+
156
+ **Fixed bugs:**
157
+
158
+ - When manually switching the connection it resets the search path [\#27](https://github.com/rails-on-services/apartment/issues/27)
159
+
160
+ **Closed issues:**
161
+
162
+ - Cached statement breaks in find [\#35](https://github.com/rails-on-services/apartment/issues/35)
163
+ - rails 6.1.alpha support [\#6](https://github.com/rails-on-services/apartment/issues/6)
164
+ - How to exclude all models from engine? [\#4](https://github.com/rails-on-services/apartment/issues/4)
165
+
166
+ **Merged pull requests:**
167
+
168
+ - Prepare Release 2.5.0 [\#44](https://github.com/rails-on-services/apartment/pull/44) ([rpbaltazar](https://github.com/rpbaltazar))
169
+ - \[Resolves \#27\] Added before hook to connected to to try to set the tenant [\#40](https://github.com/rails-on-services/apartment/pull/40) ([rpbaltazar](https://github.com/rpbaltazar))
170
+ - \[Resolves \#35\] update cache key to use a string or an array [\#36](https://github.com/rails-on-services/apartment/pull/36) ([rpbaltazar](https://github.com/rpbaltazar))
171
+ - \[Hotfix \#27\] Some errors were being thrown due to caching issues [\#33](https://github.com/rails-on-services/apartment/pull/33) ([rpbaltazar](https://github.com/rpbaltazar))
172
+ - \[Resolves \#31\] Add latest ruby verisons to test matrix [\#32](https://github.com/rails-on-services/apartment/pull/32) ([rpbaltazar](https://github.com/rpbaltazar))
173
+ - \[Chore\] refactored files to their names [\#29](https://github.com/rails-on-services/apartment/pull/29) ([rpbaltazar](https://github.com/rpbaltazar))
174
+ - \[Resolves \#27\] When manually switching the connection it resets the search path [\#28](https://github.com/rails-on-services/apartment/pull/28) ([rpbaltazar](https://github.com/rpbaltazar))
175
+ - \[Resolves \#11\] Remove old ruby and rails versions from the supported versions [\#20](https://github.com/rails-on-services/apartment/pull/20) ([rpbaltazar](https://github.com/rpbaltazar))
176
+ - Support rails 6.1 [\#7](https://github.com/rails-on-services/apartment/pull/7) ([jean-francois-labbe](https://github.com/jean-francois-labbe))
177
+
178
+ ## [2.4.0](https://github.com/rails-on-services/apartment/tree/2.4.0) (2020-04-01)
179
+
180
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.3.0...2.4.0)
181
+
182
+ **Implemented enhancements:**
183
+
184
+ - Add console info about tenants and fast switches [\#14](https://github.com/rails-on-services/apartment/issues/14)
185
+ - Update travis config to only run PR's instead of running all commits [\#12](https://github.com/rails-on-services/apartment/issues/12)
186
+
187
+ **Closed issues:**
188
+
189
+ - Rubocop cleanup [\#9](https://github.com/rails-on-services/apartment/issues/9)
190
+ - Apartment.configure throws NoMethodError [\#3](https://github.com/rails-on-services/apartment/issues/3)
191
+ - upcoming Rails 6 multi-database [\#2](https://github.com/rails-on-services/apartment/issues/2)
192
+
193
+ **Merged pull requests:**
194
+
195
+ - Fix gemspec open versions and updated version [\#25](https://github.com/rails-on-services/apartment/pull/25) ([rpbaltazar](https://github.com/rpbaltazar))
196
+ - Fix gemspec open versions and updated version [\#24](https://github.com/rails-on-services/apartment/pull/24) ([rpbaltazar](https://github.com/rpbaltazar))
197
+ - Cleanup travis matrix [\#23](https://github.com/rails-on-services/apartment/pull/23) ([rpbaltazar](https://github.com/rpbaltazar))
198
+ - Prepare v2.4.0 Release [\#22](https://github.com/rails-on-services/apartment/pull/22) ([rpbaltazar](https://github.com/rpbaltazar))
199
+ - Updated readme badges [\#21](https://github.com/rails-on-services/apartment/pull/21) ([rpbaltazar](https://github.com/rpbaltazar))
200
+ - Rescuing ActiveRecord::NoDatabaseError when dropping tenants [\#19](https://github.com/rails-on-services/apartment/pull/19) ([rpbaltazar](https://github.com/rpbaltazar))
201
+ - Skip init if we're running webpacker:compile [\#18](https://github.com/rails-on-services/apartment/pull/18) ([rpbaltazar](https://github.com/rpbaltazar))
202
+ - \[Resolves \#14\] Add console info about tenants and fast switches [\#17](https://github.com/rails-on-services/apartment/pull/17) ([rpbaltazar](https://github.com/rpbaltazar))
203
+ - Don't crash when no database connection is present [\#16](https://github.com/rails-on-services/apartment/pull/16) ([ArthurWD](https://github.com/ArthurWD))
204
+ - \[Resolves \#12\] Update travis config to only run PRs instead of all commits [\#13](https://github.com/rails-on-services/apartment/pull/13) ([rpbaltazar](https://github.com/rpbaltazar))
205
+ - \[Chore\] Fix rubocop usage [\#10](https://github.com/rails-on-services/apartment/pull/10) ([rpbaltazar](https://github.com/rpbaltazar))
206
+ - \[Resolves \#9\] Cleanup rubocop todo [\#8](https://github.com/rails-on-services/apartment/pull/8) ([rpbaltazar](https://github.com/rpbaltazar))
207
+ - Rakefile should use mysql port from configuration [\#5](https://github.com/rails-on-services/apartment/pull/5) ([jean-francois-labbe](https://github.com/jean-francois-labbe))
208
+
209
+ ## [v2.3.0](https://github.com/rails-on-services/apartment/tree/v2.3.0) (2020-01-03)
210
+
211
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.2.1...v2.3.0)
212
+
213
+ **Merged pull requests:**
214
+
215
+ - \[Resolves\] Basic support for Rails 6 [\#1](https://github.com/rails-on-services/apartment/pull/1) ([rpbaltazar](https://github.com/rpbaltazar))
216
+
217
+ ## [v2.2.1](https://github.com/rails-on-services/apartment/tree/v2.2.1) (2019-06-19)
218
+
219
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.2.0...v2.2.1)
220
+
221
+ ## [v2.2.0](https://github.com/rails-on-services/apartment/tree/v2.2.0) (2018-04-13)
222
+
223
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.1.0...v2.2.0)
224
+
225
+ ## [v2.1.0](https://github.com/rails-on-services/apartment/tree/v2.1.0) (2017-12-15)
226
+
227
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.0.0...v2.1.0)
228
+
229
+ ## [v2.0.0](https://github.com/rails-on-services/apartment/tree/v2.0.0) (2017-07-26)
230
+
231
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v1.2.0...v2.0.0)
232
+
233
+ ## [v1.2.0](https://github.com/rails-on-services/apartment/tree/v1.2.0) (2016-07-28)
234
+
235
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v1.1.0...v1.2.0)
236
+
237
+ ## [v1.1.0](https://github.com/rails-on-services/apartment/tree/v1.1.0) (2016-05-26)
238
+
239
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v1.0.2...v1.1.0)
240
+
241
+ ## [v1.0.2](https://github.com/rails-on-services/apartment/tree/v1.0.2) (2015-07-02)
242
+
243
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v1.0.1...v1.0.2)
244
+
245
+ ## [v1.0.1](https://github.com/rails-on-services/apartment/tree/v1.0.1) (2015-04-28)
246
+
247
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v1.0.0...v1.0.1)
248
+
249
+ ## [v1.0.0](https://github.com/rails-on-services/apartment/tree/v1.0.0) (2015-02-03)
250
+
251
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.26.1...v1.0.0)
252
+
253
+ ## [v0.26.1](https://github.com/rails-on-services/apartment/tree/v0.26.1) (2015-01-13)
254
+
255
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.26.0...v0.26.1)
256
+
257
+ ## [v0.26.0](https://github.com/rails-on-services/apartment/tree/v0.26.0) (2015-01-05)
258
+
259
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.25.2...v0.26.0)
260
+
261
+ ## [v0.25.2](https://github.com/rails-on-services/apartment/tree/v0.25.2) (2014-09-08)
262
+
263
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.25.1...v0.25.2)
264
+
265
+ ## [v0.25.1](https://github.com/rails-on-services/apartment/tree/v0.25.1) (2014-07-17)
266
+
267
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.25.0...v0.25.1)
268
+
269
+ ## [v0.25.0](https://github.com/rails-on-services/apartment/tree/v0.25.0) (2014-07-03)
270
+
271
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.24.3...v0.25.0)
272
+
273
+ ## [v0.24.3](https://github.com/rails-on-services/apartment/tree/v0.24.3) (2014-03-05)
274
+
275
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.24.2...v0.24.3)
276
+
277
+ ## [v0.24.2](https://github.com/rails-on-services/apartment/tree/v0.24.2) (2014-02-24)
278
+
279
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.24.1...v0.24.2)
280
+
281
+ ## [v0.24.1](https://github.com/rails-on-services/apartment/tree/v0.24.1) (2014-02-21)
282
+
283
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.24.0...v0.24.1)
284
+
285
+ ## [v0.24.0](https://github.com/rails-on-services/apartment/tree/v0.24.0) (2014-02-21)
286
+
287
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.23.2...v0.24.0)
288
+
289
+ ## [v0.23.2](https://github.com/rails-on-services/apartment/tree/v0.23.2) (2014-01-09)
290
+
291
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.23.1...v0.23.2)
292
+
293
+ ## [v0.23.1](https://github.com/rails-on-services/apartment/tree/v0.23.1) (2014-01-08)
294
+
295
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.23.0...v0.23.1)
296
+
297
+ ## [v0.23.0](https://github.com/rails-on-services/apartment/tree/v0.23.0) (2013-12-15)
298
+
299
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.22.1...v0.23.0)
300
+
301
+ ## [v0.22.1](https://github.com/rails-on-services/apartment/tree/v0.22.1) (2013-08-21)
302
+
303
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.22.0...v0.22.1)
304
+
305
+ ## [v0.22.0](https://github.com/rails-on-services/apartment/tree/v0.22.0) (2013-07-09)
306
+
307
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.21.1...v0.22.0)
308
+
309
+ ## [v0.21.1](https://github.com/rails-on-services/apartment/tree/v0.21.1) (2013-05-31)
310
+
311
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.21.0...v0.21.1)
312
+
313
+ ## [v0.21.0](https://github.com/rails-on-services/apartment/tree/v0.21.0) (2013-04-25)
314
+
315
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.20.0...v0.21.0)
316
+
317
+ ## [v0.20.0](https://github.com/rails-on-services/apartment/tree/v0.20.0) (2013-02-06)
318
+
319
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/rm...v0.20.0)
320
+
321
+ ## [rm](https://github.com/rails-on-services/apartment/tree/rm) (2013-01-30)
322
+
323
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.19.2...rm)
324
+
325
+ ## [v0.19.2](https://github.com/rails-on-services/apartment/tree/v0.19.2) (2013-01-30)
326
+
327
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.19.0...v0.19.2)
328
+
329
+ ## [v0.19.0](https://github.com/rails-on-services/apartment/tree/v0.19.0) (2012-12-30)
330
+
331
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.18.0...v0.19.0)
332
+
333
+ ## [v0.18.0](https://github.com/rails-on-services/apartment/tree/v0.18.0) (2012-11-28)
334
+
335
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.17.3...v0.18.0)
336
+
337
+ ## [v0.17.3](https://github.com/rails-on-services/apartment/tree/v0.17.3) (2012-11-20)
338
+
339
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.17.2...v0.17.3)
340
+
341
+ ## [v0.17.2](https://github.com/rails-on-services/apartment/tree/v0.17.2) (2012-11-15)
342
+
343
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.17.1...v0.17.2)
344
+
345
+ ## [v0.17.1](https://github.com/rails-on-services/apartment/tree/v0.17.1) (2012-10-30)
346
+
347
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.17.0...v0.17.1)
348
+
349
+ ## [v0.17.0](https://github.com/rails-on-services/apartment/tree/v0.17.0) (2012-09-26)
350
+
351
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.16.0...v0.17.0)
352
+
353
+ ## [v0.16.0](https://github.com/rails-on-services/apartment/tree/v0.16.0) (2012-06-01)
354
+
355
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.15.0...v0.16.0)
356
+
357
+ ## [v0.15.0](https://github.com/rails-on-services/apartment/tree/v0.15.0) (2012-03-18)
358
+
359
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.14.4...v0.15.0)
360
+
361
+ ## [v0.14.4](https://github.com/rails-on-services/apartment/tree/v0.14.4) (2012-03-08)
362
+
363
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.14.3...v0.14.4)
364
+
365
+ ## [v0.14.3](https://github.com/rails-on-services/apartment/tree/v0.14.3) (2012-02-21)
366
+
367
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.14.2...v0.14.3)
368
+
369
+ ## [v0.14.2](https://github.com/rails-on-services/apartment/tree/v0.14.2) (2012-02-21)
370
+
371
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.13.0.1...v0.14.2)
372
+
373
+ ## [v0.13.0.1](https://github.com/rails-on-services/apartment/tree/v0.13.0.1) (2012-02-09)
374
+
375
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.14.1...v0.13.0.1)
376
+
377
+ ## [v0.14.1](https://github.com/rails-on-services/apartment/tree/v0.14.1) (2011-12-13)
378
+
379
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.14.0...v0.14.1)
380
+
381
+ ## [v0.14.0](https://github.com/rails-on-services/apartment/tree/v0.14.0) (2011-12-13)
382
+
383
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.13.1...v0.14.0)
384
+
385
+ ## [v0.13.1](https://github.com/rails-on-services/apartment/tree/v0.13.1) (2011-11-08)
386
+
387
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.13.0...v0.13.1)
388
+
389
+ ## [v0.13.0](https://github.com/rails-on-services/apartment/tree/v0.13.0) (2011-10-25)
390
+
391
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.12.0...v0.13.0)
392
+
393
+ ## [v0.12.0](https://github.com/rails-on-services/apartment/tree/v0.12.0) (2011-10-04)
394
+
395
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.11.1...v0.12.0)
396
+
397
+ ## [v0.11.1](https://github.com/rails-on-services/apartment/tree/v0.11.1) (2011-09-22)
398
+
399
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.11.0...v0.11.1)
400
+
401
+ ## [v0.11.0](https://github.com/rails-on-services/apartment/tree/v0.11.0) (2011-09-20)
402
+
403
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.10.3...v0.11.0)
404
+
405
+ ## [v0.10.3](https://github.com/rails-on-services/apartment/tree/v0.10.3) (2011-09-20)
406
+
407
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.10.2...v0.10.3)
408
+
409
+ ## [v0.10.2](https://github.com/rails-on-services/apartment/tree/v0.10.2) (2011-09-15)
410
+
411
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.10.1...v0.10.2)
412
+
413
+ ## [v0.10.1](https://github.com/rails-on-services/apartment/tree/v0.10.1) (2011-08-11)
414
+
415
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.10.0...v0.10.1)
416
+
417
+ ## [v0.10.0](https://github.com/rails-on-services/apartment/tree/v0.10.0) (2011-07-29)
418
+
419
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.9.2...v0.10.0)
420
+
421
+ ## [v0.9.2](https://github.com/rails-on-services/apartment/tree/v0.9.2) (2011-07-04)
422
+
423
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.9.1...v0.9.2)
424
+
425
+ ## [v0.9.1](https://github.com/rails-on-services/apartment/tree/v0.9.1) (2011-06-24)
426
+
427
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.9.0...v0.9.1)
428
+
429
+ ## [v0.9.0](https://github.com/rails-on-services/apartment/tree/v0.9.0) (2011-06-23)
430
+
431
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.8.0...v0.9.0)
432
+
433
+ ## [v0.8.0](https://github.com/rails-on-services/apartment/tree/v0.8.0) (2011-06-23)
434
+
435
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.7.0...v0.8.0)
436
+
437
+ ## [v0.7.0](https://github.com/rails-on-services/apartment/tree/v0.7.0) (2011-06-22)
438
+
439
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.6.0...v0.7.0)
440
+
441
+ ## [v0.6.0](https://github.com/rails-on-services/apartment/tree/v0.6.0) (2011-06-21)
442
+
443
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/0.6.0...v0.6.0)
444
+
445
+ ## [0.6.0](https://github.com/rails-on-services/apartment/tree/0.6.0) (2011-06-21)
446
+
447
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.5.1...0.6.0)
448
+
449
+ ## [v0.5.1](https://github.com/rails-on-services/apartment/tree/v0.5.1) (2011-06-21)
450
+
451
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/0.5.0...v0.5.1)
452
+
453
+ ## [0.5.0](https://github.com/rails-on-services/apartment/tree/0.5.0) (2011-06-20)
454
+
455
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.5.0...0.5.0)
456
+
457
+ ## [v0.5.0](https://github.com/rails-on-services/apartment/tree/v0.5.0) (2011-06-20)
458
+
459
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v0.1.3...v0.5.0)
460
+
461
+ ## [v0.1.3](https://github.com/rails-on-services/apartment/tree/v0.1.3) (2011-04-18)
462
+
463
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/7100f34a185ab7d48947f06aa8c14f0cf0a68bb7...v0.1.3)
464
+
465
+ # v2.7.1
466
+
467
+ **Implemented enhancements:**
468
+
469
+ - N/a
470
+
471
+ **Fixed bugs:**
472
+
473
+ - [Resolves #82] Enhanced db:create breaks plugin compatibility - <https://github.com/rails-on-services/apartment/pull/83>
474
+
475
+ **Closed issues:**
476
+
477
+ - Update rake version in development
478
+ - Renamed gemspec to match gem name
479
+
480
+ # v2.7.0
481
+
482
+ **Implemented enhancements:**
483
+
484
+ - [Resolves #70] Rake tasks define methods on main - <https://github.com/rails-on-services/apartment/pull/75>
485
+ - Add database and schema to active record log. Configurable, defaults to false to keep current behavior - <https://github.com/rails-on-services/apartment/pull/55>
486
+
487
+ **Fixed bugs:**
488
+
489
+ - [Fixes #61] Fix database create in mysql - <https://github.com/rails-on-services/apartment/pull/76>
490
+
491
+ **Closed issues:**
492
+
493
+ - Remove deprecated tld_length config option: tld_length was removed in influitive#309, this configuration option doesn't have any effect now. - <https://github.com/rails-on-services/apartment/pull/72>
494
+ - Using [diffend.io proxy](https://diffend.io) to safely check required gems
495
+ - Added [story branch](https://github.com/story-branch/story_branch) to the configuration
496
+ - Using travis-ci to run rubocop as well, replacing github actions: github actions do not work in fork's PRs
497
+
498
+ # v2.6.1
499
+
500
+ **Implemented enhancements:**
501
+ - N/a
502
+
503
+ **Fixed bugs:**
504
+ - [Resolves influitive#607] Avoid early connection
505
+ - <https://github.com/rails-on-services/apartment/pull/39>
506
+ - <https://github.com/rails-on-services/apartment/pull/53>
507
+ - <https://github.com/rails-on-services/apartment/pull/51>
508
+ - [Resolves #52] Rake db:setup tries to seed non existent tenant - <https://github.com/rails-on-services/apartment/pull/54>
509
+ - [Resolves #56] DB rollback uses second last migration - <https://github.com/rails-on-services/apartment/pull/57>
510
+
511
+ #**Closed issues:**
512
+ - N/a
513
+
514
+ # v2.6.0
515
+
516
+ **Implemented enhancements:**
517
+ - [Resolves #26] Support configuration for skip checking of schema existence before switching
518
+ - [Resolves #41] Add tenant info to console boot
519
+
520
+ **Fixed bugs:**
521
+ - [Resolves #37] Custom Console deprecation warning
522
+ - [Resolves #42] After switch callback not working with nil argument
523
+
524
+ #**Closed issues:**
525
+ - Updated github actions configuration to run on PRs as well
526
+
527
+ # v2.5.0
528
+
529
+ **Implemented enhancements:**
530
+ - [Resolves #6] Adds support for rails 6.1
531
+ - [Resolves #27] Adds support to not rely on set search path, but instead prepends the schema name to the table name when using postgresql with schemas.
532
+ - [Resolves #35] Cache keys are now tenant dependent
533
+
534
+ **Fixed bugs:**
535
+ - [Resolves #27] Manually switching connection between read and write forgets the schema
536
+
537
+ #**Closed issues:**
538
+ - [Resolves #31] Add latest ruby versions to test matrix
539
+
540
+ # v2.4.0
541
+
542
+ **Implemented enhancements:**
543
+ - [Resolves #14] Add console info about tenants and fast switches #17
544
+ - Skip init if we're running webpacker:compile #18
545
+
546
+ **Fixed bugs:**
547
+ - Don't crash when no database connection is present #16
548
+ - Rescuing ActiveRecord::NoDatabaseError when dropping tenants #19
549
+
550
+ #**Closed issues:**
551
+ - Rakefile should use mysql port from configuration #5
552
+ - [Resolves #9] Cleanup rubocop todo #8
553
+ - Cleanup travis matrix #23
554
+
555
+ # v2.3.0
556
+ * January 3, 2020
557
+
558
+ **Implemented enhancements:**
559
+ - Basic support for rails 6
560
+ - Released different gem name, with same API as apartment
561
+
562
+ # v2.2.1
563
+ * June 19, 2019
564
+
565
+ **Implemented enhancements:**
566
+ - #566: IGNORE_EMPTY_TENANTS environment variable to ignore empty tenants
567
+ warning. [Pysis868]
568
+
569
+ **Fixed bugs:**
570
+ - #586: Ignore `CREATE SCHEMA public` statement in pg dump [artemave]
571
+ - #549: Fix Postgres schema creation with dump SQL [ancorcruz]
572
+
573
+ # v2.2.0
574
+ * April 14, 2018
575
+
576
+ **Implemented enhancements:**
577
+ - #523: Add Rails 5.2 support [IngusSkaistkalns]
578
+ - #504: Test against Ruby 2.5.0 [ahorek]
579
+ - #528: Test against Rails 5.2 [meganemura]
580
+
581
+ **Removed:**
582
+ - #504: Remove Rails 4.0/4.1 support [ahorek]
583
+ - #545: Stop supporting for JRuby + Rails 5.0 [meganemura]
584
+
585
+ **Fixed bugs:**
586
+ - #537: Fix PostgresqlSchemaFromSqlAdapter for newer PostgreSQL [shterrett]
587
+ - #532: Issue is reported by [aldrinmartoq]
588
+ - #519: Fix exception when main database doesn't exist [mayeco]
589
+
590
+ **Closed issues:**
591
+
592
+ - #514: Fix typo [menorval]
593
+
594
+ # v2.1.0
595
+ * December 15, 2017
596
+
597
+ - Add `parallel_migration_threads` configuration option for running migrations
598
+ in parallel [ryanbrunner]
599
+ - Drop Ruby 2.0.0 support [meganemura]
600
+ - ignore_private when parsing subdomains with PublicSuffix [michiomochi]
601
+ - Ignore row_security statements in psql dumps for backward compatibility
602
+ [meganemura]
603
+ - "Host" elevator [shrmnk]
604
+ - Enhance db:drop task to act on all tenants [kuzukuzu]
605
+
606
+ # v2.0.0
607
+ * July 26, 2017
608
+
609
+ - Raise FileNotFound rather than abort when loading files [meganemura]
610
+ - Add 5.1 support with fixes for deprecations [meganemura]
611
+ - Fix tests for 5.x and a host of dev-friendly improvements [meganemura]
612
+ - Keep query cache config after switching databases [fernandomm]
613
+ - Pass constants not strings to middleware stack (Rails 5) [tzabaman]
614
+ - Remove deprecations from 1.0.0 [caironoleto]
615
+ - Replace `tld_length` configuration option with PublicSuffix gem for the
616
+ subdomain elevator [humancopy]
617
+ - Pass full config to create_database to allow :encoding/:collation/etc
618
+ [kakipo]
619
+ - Don't retain a connection during initialization [mikecmpbll]
620
+ - Fix database name escaping in drop_command [mikecmpbll]
621
+ - Skip initialization for assets:clean and assets:precompile tasks
622
+ [frank-west-iii]
623
+
624
+ # v1.2.0
625
+ * July 28, 2016
626
+
627
+ - Official Rails 5 support
628
+
629
+ # v1.1.0
630
+ * May 26, 2016
631
+
632
+ - Reset tenant after each request
633
+ - [Support callbacks](https://github.com/influitive/apartment/commit/ff9c9d092a781026502f5997c0bbedcb5748bc83) on switch [cbeer]
634
+ - Preliminary support for [separate database hosts](https://github.com/influitive/apartment/commit/abdffbf8cd9fba87243f16c86390da13e318ee1f) [apneadiving]
635
+
636
+ # v1.0.2
637
+ * July 2, 2015
638
+
639
+ - Fix pg_dump env vars - pull/208 [MitinPavel]
640
+ - Allow custom seed data file - pull/234 [typeoneerror]
641
+
642
+ # v1.0.1
643
+ * April 28, 2015
644
+
645
+ - Fix `Apartment::Deprecation` which was rescuing all exceptions
646
+
647
+ # v1.0.0
648
+ * Feb 3, 2015
649
+
650
+ - [BREAKING CHANGE] `Apartment::Tenant.process` is deprecated in favour of `Apartment::Tenant.switch`
651
+ - [BREAKING CHANGE] `Apartment::Tenant.switch` without a block is deprecated in favour of `Apartment::Tenant.switch!`
652
+ - Raise proper `TenantNotFound`, `TenantExists` exceptions
653
+ - Deprecate old `SchemaNotFound`, `DatabaseNotFound` exceptions
654
+
655
+ # v0.26.1
656
+ * Jan 13, 2015
657
+
658
+ - Fixed [schema quoting bug](https://github.com/influitive/apartment/issues/198#issuecomment-69782651) [jonsgreen]
659
+
660
+ # v0.26.0
661
+ * Jan 5, 2015
662
+
663
+ - Rails 4.2 support
664
+
665
+ # v0.25.2
666
+ * Sept 8, 2014
667
+
668
+ - Heroku fix on `assets:precompile` - pull/169 [rabbitt]
669
+
670
+ # v0.25.1
671
+ * July 17, 2014
672
+
673
+ - Fixed a few vestiges of Apartment::Database
674
+
675
+ # v0.25.0
676
+ * July 3, 2014
677
+
678
+ - [BREAKING CHANGE] - `Apartment::Database` is not deprecated in favour of
679
+ `Apartment::Tenant`
680
+ - ActiveRecord (and Rails) 4.1 now supported
681
+ - A new sql based adapter that dumps the schema using sql
682
+
683
+ # v0.24.3
684
+ * March 5, 2014
685
+
686
+ - Rake enhancements weren't removed from the generator template
687
+
688
+ # v0.24.2
689
+ * February 24, 2014
690
+
691
+ - Better warnings if `apartment:migrate` is run
692
+
693
+ # v0.24.1
694
+ * February 21, 2014
695
+
696
+ - requiring `apartment/tasks/enhancements` in an initializer doesn't work
697
+ - One can disable tenant migrations using `Apartment.db_migrate_tenants = false` in the Rakefile
698
+
699
+ # v0.24
700
+ * February 21, 2014 (In honour of the Women's Gold Medal in Hockey at Sochi)
701
+
702
+ - [BREAKING CHANGE] `apartment:migrate` task no longer depends on `db:migrate`
703
+ - Instead, you can `require 'apartment/tasks/enhancements'` in your Apartment initializer
704
+ - This will enhance `rake db:migrate` to also run `apartment:migrate`
705
+ - You can now forget about ever running `apartment:migrate` again
706
+ - Numerous deprecations for things referencing the word 'database'
707
+ - This is an ongoing effort to completely replace 'database' with 'tenant' as a better abstraction
708
+ - Note the obvious `Apartment::Database` still exists but will hopefully become `Apartment::Tenant` soon
709
+
710
+ # v0.23.2
711
+ * January 9, 2014
712
+
713
+ - Increased visibility of #parse_database_name warning
714
+
715
+ # v0.23.1
716
+ * January 8, 2014
717
+
718
+ - Schema adapters now initialize with default and persistent schemas
719
+ - Deprecated Apartment::Elevators#parse_database_name
720
+
721
+ # v0.23.0
722
+ * August 21, 2013
723
+
724
+ - Subdomain Elevator now allows for exclusions
725
+ - Delayed::Job has been completely removed
726
+
727
+ # v0.22.1
728
+ * August 21, 2013
729
+
730
+ - Fix bug where if your ruby process importing the database schema is run
731
+ from a directory other than the app root, Apartment wouldn't know what
732
+ schema_migrations to insert into the database (Rails only)
733
+
734
+ # v0.22.0
735
+ * June 9, 2013
736
+
737
+ - Numerous bug fixes:
738
+ - Mysql reset could connect to wrong database [eric88]
739
+ - Postgresql schema names weren't quoted properly [gdott9]
740
+ - Fixed error message on SchemaNotFound in `process`
741
+ - HostHash elevator allows mapping host based on hash contents [gdott9]
742
+ - Official Sidekiq support with the [apartment-sidekiq gem](https://github.com/influitive/apartment-sidekiq)
743
+
744
+
745
+ # v0.21.1
746
+ * May 31, 2013
747
+
748
+ - Clearing the AR::QueryCache after switching databases.
749
+ - Fixes issue with stale model being loaded for schema adapters
750
+
751
+ # v0.21.0
752
+ * April 24, 2013
753
+
754
+ - JDBC support!! [PetrolMan]
755
+
756
+ # v0.20.0
757
+ * Feb 6, 2013
758
+
759
+ - Mysql now has a 'schema like' option to perform like Postgresql (default)
760
+ - This should be significantly more performant than using connections
761
+ - Psych is now supported for Delayed::Job yaml parsing
762
+
763
+ # v0.19.2
764
+ * Jan 30, 2013
765
+
766
+ - Database schema file can now be set manually or skipped altogether
767
+
768
+ # v0.19.1
769
+ * Jan 30, 2013
770
+
771
+ - Allow schema.rb import file to be specified in config or skip schema.rb import altogether
772
+
773
+ # v0.19.0
774
+ * Dec 29, 2012
775
+
776
+ - Apartment is now threadsafe
777
+ - New postgis adapter [zonpantli]
778
+ - Removed ActionDispatch dependency for use with Rack apps (regression)
779
+
780
+ # v0.18.0
781
+ * Nov 27, 2012
782
+
783
+ - Added `append_environment` config option [virtualstaticvoid]
784
+ - Cleaned up the readme and generator documentation
785
+ - Added `connection_class` config option [smashtank]
786
+ - Fixed a [bug](https://github.com/influitive/apartment/issues/17#issuecomment-10758327) in pg adapter when missing schema
787
+
788
+ # v0.17.1
789
+ * Oct 30, 2012
790
+
791
+ - Fixed a bug where switching to an unknown db in mysql2 would crash the app [Frodotus]
792
+
793
+ # v0.17.0
794
+ * Sept 26, 2012
795
+
796
+ - Apartment has [a new home!](https://github.com/influitive/apartment)
797
+ - Support Sidekiq hooks to switch dbs [maedhr]
798
+ - Allow VERSION to be used on apartment:migrate [Bhavin Kamani]
799
+
800
+ # v0.16.0
801
+ * June 1, 2012
802
+
803
+ - Apartment now supports a default_schema to be set, rather than relying on ActiveRecord's default schema_search_path
804
+ - Additional schemas can always be maintained in the schema_search_path by configuring persistent_schemas [ryanbrunner]
805
+ - This means Hstore is officially supported!!
806
+ - There is now a full domain based elevator to switch dbs based on the whole domain [lcowell]
807
+ - There is now a generic elevator that takes a Proc to switch dbs based on the return value of that proc.
808
+
809
+ # v0.15.0
810
+ * March 18, 2012
811
+
812
+ - Remove Rails dependency, Apartment can now be used with any Rack based framework using ActiveRecord
813
+
814
+ # v0.14.4
815
+ * March 8, 2012
816
+
817
+ - Delayed::Job Hooks now return to the previous database, rather than resetting
818
+
819
+ # v0.14.3
820
+ * Feb 21, 2012
821
+
822
+ - Fix yaml serialization of non DJ models
823
+
824
+ # v0.14.2
825
+ * Feb 21, 2012
826
+
827
+ - Fix Delayed::Job yaml encoding with Rails > 3.0.x
828
+
829
+ # v0.14.1
830
+ * Dec 13, 2011
831
+
832
+ - Fix ActionDispatch::Callbacks deprecation warnings
833
+
834
+ # v0.14.0
835
+ * Dec 13, 2011
836
+
837
+ - Rails 3.1 Support
838
+
839
+ # v0.13.1
840
+ * Nov 8, 2011
841
+
842
+ - Reset prepared statement cache for rails 3.1.1 before switching dbs when using postgresql schemas
843
+ - Only necessary until the next release which will be more schema aware
844
+
845
+ # v0.13.0
846
+ * Oct 25, 2011
847
+
848
+ - `process` will now rescue with reset if the previous schema/db is no longer available
849
+ - `create` now takes an optional block which allows you to process within the newly created db
850
+ - Fixed Rails version >= 3.0.10 and < 3.1 because there have been significant testing problems with 3.1, next version will hopefully fix this
851
+
852
+ # v0.12.0
853
+ * Oct 4, 2011
854
+
855
+ - Added a `drop` method for removing databases/schemas
856
+ - Refactored abstract adapter to further remove duplication in concrete implementations
857
+ - Excluded models now take string references so they are properly reloaded in development
858
+ - Better silencing of `schema.rb` loading using `verbose` flag
859
+
860
+ # v0.11.1
861
+ * Sep 22, 2011
862
+
863
+ - Better use of Railties for initializing apartment
864
+ - The following changes were necessary as I haven't figured out how to properly hook into Rails reloading
865
+ - Added reloader middleware in development to init Apartment on each request
866
+ - Override `reload!` in console to also init Apartment
867
+
868
+ # v0.11.0
869
+ * Sep 20, 2011
870
+
871
+ - Excluded models no longer use a different connection when using postgresql schemas. Instead their table_name is prefixed with `public.`
872
+
873
+ # v0.10.3
874
+ * Sep 20, 2011
875
+
876
+ - Fix improper raising of exceptions on create and reset
877
+
878
+ # v0.10.2
879
+ * Sep 15, 2011
880
+
881
+ - Remove all the annoying logging for loading db schema and seeding on create
882
+
883
+ # v0.10.1
884
+ * Aug 11, 2011
885
+
886
+ - Fixed bug in DJ where new objects (that hadn't been pulled from the db) didn't have the proper database assigned
887
+
888
+ # v0.10.0
889
+ * July 29, 2011
890
+
891
+ - Added better support for Delayed Job
892
+ - New config option that enables Delayed Job wrappers
893
+ - Note that DJ support uses a work-around in order to get queues stored in the public schema, not sure why it doesn't work out of the box, will look into it, until then, see documentation on queue'ng jobs
894
+
895
+ # v0.9.2
896
+ * July 4, 2011
897
+
898
+ - Migrations now run associated rails migration fully, fixes schema.rb not being reloaded after migrations
899
+
900
+ # v0.9.1
901
+ * June 24, 2011
902
+
903
+ - Hooks now take the payload object as an argument to fetch the proper db for DJ hooks
904
+
905
+ # v0.9.0
906
+ * June 23, 2011
907
+
908
+ - Added module to provide delayed job hooks
909
+
910
+ # v0.8.0
911
+ * June 23, 2011
912
+
913
+ - Added #current_database which will return the current database (or schema) name
914
+
915
+ # v0.7.0
916
+ * June 22, 2011
917
+
918
+ - Added apartment:seed rake task for seeding all dbs
919
+
920
+ # v0.6.0
921
+ * June 21, 2011
922
+
923
+ - Added #process to connect to new db, perform operations, then ensure a reset
924
+
925
+ # v0.5.1
926
+ * June 21, 2011
927
+
928
+ - Fixed db migrate up/down/rollback
929
+ - added db:redo
930
+
931
+ # v0.5.0
932
+ * June 20, 2011
933
+
934
+ - Added the concept of an "Elevator", a rack based strategy for db switching
935
+ - Added the Subdomain Elevator middleware to enabled db switching based on subdomain
936
+
937
+ # v0.4.0
938
+ * June 14, 2011
939
+
940
+ - Added `configure` method on Apartment instead of using yml file, allows for dynamic setting of db names to migrate for rake task
941
+ - Added `seed_after_create` config option to import seed data to new db on create
942
+
943
+ # v0.3.0
944
+ * June 10, 2011
945
+
946
+ - Added full support for database migration
947
+ - Added in method to establish new connection for excluded models on startup rather than on each switch
948
+
949
+ # v0.2.0
950
+ * June 6, 2011 *
951
+
952
+ - Refactor to use more rails/active_support functionality
953
+ - Refactor config to lazily load apartment.yml if exists
954
+ - Remove OStruct and just use hashes for fetching methods
955
+ - Added schema load on create instead of migrating from scratch
956
+
957
+ # v0.1.3
958
+ * March 30, 2011 *
959
+
960
+ - Original pass from Ryan
961
+
962
+
963
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*