ros-apartment 2.5.0 → 2.7.2

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