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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +78 -0
- data/.github/workflows/changelog.yml +63 -0
- data/.rubocop.yml +78 -4
- data/.rubocop_todo.yml +50 -13
- data/CHANGELOG.md +963 -0
- data/Gemfile +2 -2
- data/Guardfile +0 -15
- data/HISTORY.md +118 -84
- data/README.md +27 -0
- data/Rakefile +5 -2
- data/gemfiles/rails_5_0.gemfile +1 -1
- data/gemfiles/rails_5_1.gemfile +1 -1
- data/gemfiles/rails_5_2.gemfile +1 -1
- data/gemfiles/rails_6_0.gemfile +1 -1
- data/gemfiles/rails_master.gemfile +1 -1
- data/lib/apartment.rb +5 -3
- data/lib/apartment/active_record/connection_handling.rb +3 -0
- data/lib/apartment/active_record/internal_metadata.rb +0 -2
- data/lib/apartment/active_record/schema_migration.rb +0 -2
- data/lib/apartment/adapters/abstract_adapter.rb +5 -3
- data/lib/apartment/adapters/abstract_jdbc_adapter.rb +2 -1
- data/lib/apartment/adapters/jdbc_postgresql_adapter.rb +2 -1
- data/lib/apartment/adapters/mysql2_adapter.rb +3 -0
- data/lib/apartment/adapters/postgresql_adapter.rb +30 -7
- data/lib/apartment/console.rb +5 -9
- data/lib/apartment/custom_console.rb +2 -2
- data/lib/apartment/log_subscriber.rb +33 -0
- data/lib/apartment/railtie.rb +26 -21
- data/lib/apartment/tasks/enhancements.rb +1 -1
- data/lib/apartment/tasks/task_helper.rb +7 -2
- data/lib/apartment/tenant.rb +6 -18
- data/lib/apartment/version.rb +1 -1
- data/lib/generators/apartment/install/templates/apartment.rb +2 -1
- data/lib/tasks/apartment.rake +5 -6
- data/{apartment.gemspec → ros-apartment.gemspec} +3 -4
- metadata +14 -12
- data/.travis.yml +0 -49
- data/lib/apartment/active_record/log_subscriber.rb +0 -41
data/Gemfile
CHANGED
data/Guardfile
CHANGED
@@ -8,19 +8,4 @@ guard :rspec do
|
|
8
8
|
watch(%r{^lib/apartment/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
|
9
9
|
watch(%r{^lib/apartment/(.+)\.rb$}) { |m| "spec/integration/#{m[1]}_spec.rb" }
|
10
10
|
watch('spec/spec_helper.rb') { 'spec' }
|
11
|
-
|
12
|
-
# # Rails example
|
13
|
-
# watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
14
|
-
# watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
15
|
-
# watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
16
|
-
# watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
17
|
-
# watch('config/routes.rb') { "spec/routing" }
|
18
|
-
# watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
19
|
-
|
20
|
-
# # Capybara features specs
|
21
|
-
# watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
22
|
-
|
23
|
-
# # Turnip features and steps
|
24
|
-
# watch(%r{^spec/acceptance/(.+)\.feature$})
|
25
|
-
# watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
26
11
|
end
|
data/HISTORY.md
CHANGED
@@ -1,9 +1,42 @@
|
|
1
|
-
#
|
1
|
+
# v2.7.1
|
2
2
|
|
3
|
-
|
3
|
+
**Implemented enhancements:**
|
4
|
+
|
5
|
+
- N/a
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- [Resolves #82] Enhanced db:create breaks plugin compatibility - <https://github.com/rails-on-services/apartment/pull/83>
|
10
|
+
|
11
|
+
**Closed issues:**
|
12
|
+
|
13
|
+
- Update rake version in development
|
14
|
+
- Renamed gemspec to match gem name
|
15
|
+
|
16
|
+
# v2.7.0
|
17
|
+
|
18
|
+
**Implemented enhancements:**
|
19
|
+
|
20
|
+
- [Resolves #70] Rake tasks define methods on main - <https://github.com/rails-on-services/apartment/pull/75>
|
21
|
+
- 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>
|
22
|
+
|
23
|
+
**Fixed bugs:**
|
24
|
+
|
25
|
+
- [Fixes #61] Fix database create in mysql - <https://github.com/rails-on-services/apartment/pull/76>
|
26
|
+
|
27
|
+
**Closed issues:**
|
28
|
+
|
29
|
+
- 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>
|
30
|
+
- Using [diffend.io proxy](https://diffend.io) to safely check required gems
|
31
|
+
- Added [story branch](https://github.com/story-branch/story_branch) to the configuration
|
32
|
+
- Using travis-ci to run rubocop as well, replacing github actions: github actions do not work in fork's PRs
|
33
|
+
|
34
|
+
# v2.6.1
|
35
|
+
|
36
|
+
**Implemented enhancements:**
|
4
37
|
- N/a
|
5
38
|
|
6
|
-
|
39
|
+
**Fixed bugs:**
|
7
40
|
- [Resolves influitive#607] Avoid early connection
|
8
41
|
- <https://github.com/rails-on-services/apartment/pull/39>
|
9
42
|
- <https://github.com/rails-on-services/apartment/pull/53>
|
@@ -11,89 +44,90 @@
|
|
11
44
|
- [Resolves #52] Rake db:setup tries to seed non existent tenant - <https://github.com/rails-on-services/apartment/pull/54>
|
12
45
|
- [Resolves #56] DB rollback uses second last migration - <https://github.com/rails-on-services/apartment/pull/57>
|
13
46
|
|
14
|
-
|
47
|
+
#**Closed issues:**
|
15
48
|
- N/a
|
16
49
|
|
17
|
-
#
|
50
|
+
# v2.6.0
|
18
51
|
|
19
|
-
|
52
|
+
**Implemented enhancements:**
|
20
53
|
- [Resolves #26] Support configuration for skip checking of schema existence before switching
|
21
54
|
- [Resolves #41] Add tenant info to console boot
|
22
55
|
|
23
|
-
|
56
|
+
**Fixed bugs:**
|
24
57
|
- [Resolves #37] Custom Console deprecation warning
|
25
58
|
- [Resolves #42] After switch callback not working with nil argument
|
26
59
|
|
27
|
-
|
60
|
+
#**Closed issues:**
|
28
61
|
- Updated github actions configuration to run on PRs as well
|
29
62
|
|
30
|
-
#
|
63
|
+
# v2.5.0
|
31
64
|
|
32
|
-
|
65
|
+
**Implemented enhancements:**
|
33
66
|
- [Resolves #6] Adds support for rails 6.1
|
34
67
|
- [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.
|
35
68
|
- [Resolves #35] Cache keys are now tenant dependent
|
36
69
|
|
37
|
-
|
70
|
+
**Fixed bugs:**
|
38
71
|
- [Resolves #27] Manually switching connection between read and write forgets the schema
|
39
72
|
|
40
|
-
|
73
|
+
#**Closed issues:**
|
41
74
|
- [Resolves #31] Add latest ruby versions to test matrix
|
42
75
|
|
43
|
-
#
|
76
|
+
# v2.4.0
|
44
77
|
|
45
|
-
|
78
|
+
**Implemented enhancements:**
|
46
79
|
- [Resolves #14] Add console info about tenants and fast switches #17
|
47
80
|
- Skip init if we're running webpacker:compile #18
|
48
81
|
|
49
|
-
|
82
|
+
**Fixed bugs:**
|
50
83
|
- Don't crash when no database connection is present #16
|
51
84
|
- Rescuing ActiveRecord::NoDatabaseError when dropping tenants #19
|
52
85
|
|
53
|
-
|
86
|
+
#**Closed issues:**
|
54
87
|
- Rakefile should use mysql port from configuration #5
|
55
88
|
- [Resolves #9] Cleanup rubocop todo #8
|
56
89
|
- Cleanup travis matrix #23
|
57
90
|
|
58
|
-
#
|
91
|
+
# v2.3.0
|
59
92
|
* January 3, 2020
|
60
93
|
|
61
|
-
|
94
|
+
**Implemented enhancements:**
|
62
95
|
- Basic support for rails 6
|
63
96
|
- Released different gem name, with same API as apartment
|
64
97
|
|
65
|
-
#
|
98
|
+
# v2.2.1
|
66
99
|
* June 19, 2019
|
67
100
|
|
68
|
-
|
101
|
+
**Implemented enhancements:**
|
69
102
|
- #566: IGNORE_EMPTY_TENANTS environment variable to ignore empty tenants
|
70
103
|
warning. [Pysis868]
|
71
104
|
|
72
|
-
|
105
|
+
**Fixed bugs:**
|
73
106
|
- #586: Ignore `CREATE SCHEMA public` statement in pg dump [artemave]
|
74
107
|
- #549: Fix Postgres schema creation with dump SQL [ancorcruz]
|
75
108
|
|
76
|
-
#
|
109
|
+
# v2.2.0
|
77
110
|
* April 14, 2018
|
78
111
|
|
79
|
-
|
112
|
+
**Implemented enhancements:**
|
80
113
|
- #523: Add Rails 5.2 support [IngusSkaistkalns]
|
81
114
|
- #504: Test against Ruby 2.5.0 [ahorek]
|
82
115
|
- #528: Test against Rails 5.2 [meganemura]
|
83
116
|
|
84
|
-
|
117
|
+
**Removed:**
|
85
118
|
- #504: Remove Rails 4.0/4.1 support [ahorek]
|
86
119
|
- #545: Stop supporting for JRuby + Rails 5.0 [meganemura]
|
87
120
|
|
88
|
-
|
121
|
+
**Fixed bugs:**
|
89
122
|
- #537: Fix PostgresqlSchemaFromSqlAdapter for newer PostgreSQL [shterrett]
|
90
123
|
- #532: Issue is reported by [aldrinmartoq]
|
91
124
|
- #519: Fix exception when main database doesn't exist [mayeco]
|
92
125
|
|
93
|
-
|
126
|
+
**Closed issues:**
|
127
|
+
|
94
128
|
- #514: Fix typo [menorval]
|
95
129
|
|
96
|
-
#
|
130
|
+
# v2.1.0
|
97
131
|
* December 15, 2017
|
98
132
|
|
99
133
|
- Add `parallel_migration_threads` configuration option for running migrations
|
@@ -105,7 +139,7 @@
|
|
105
139
|
- "Host" elevator [shrmnk]
|
106
140
|
- Enhance db:drop task to act on all tenants [kuzukuzu]
|
107
141
|
|
108
|
-
#
|
142
|
+
# v2.0.0
|
109
143
|
* July 26, 2017
|
110
144
|
|
111
145
|
- Raise FileNotFound rather than abort when loading files [meganemura]
|
@@ -123,30 +157,30 @@
|
|
123
157
|
- Skip initialization for assets:clean and assets:precompile tasks
|
124
158
|
[frank-west-iii]
|
125
159
|
|
126
|
-
#
|
160
|
+
# v1.2.0
|
127
161
|
* July 28, 2016
|
128
162
|
|
129
163
|
- Official Rails 5 support
|
130
164
|
|
131
|
-
#
|
165
|
+
# v1.1.0
|
132
166
|
* May 26, 2016
|
133
167
|
|
134
168
|
- Reset tenant after each request
|
135
169
|
- [Support callbacks](https://github.com/influitive/apartment/commit/ff9c9d092a781026502f5997c0bbedcb5748bc83) on switch [cbeer]
|
136
170
|
- Preliminary support for [separate database hosts](https://github.com/influitive/apartment/commit/abdffbf8cd9fba87243f16c86390da13e318ee1f) [apneadiving]
|
137
171
|
|
138
|
-
#
|
172
|
+
# v1.0.2
|
139
173
|
* July 2, 2015
|
140
174
|
|
141
175
|
- Fix pg_dump env vars - pull/208 [MitinPavel]
|
142
176
|
- Allow custom seed data file - pull/234 [typeoneerror]
|
143
177
|
|
144
|
-
#
|
178
|
+
# v1.0.1
|
145
179
|
* April 28, 2015
|
146
180
|
|
147
181
|
- Fix `Apartment::Deprecation` which was rescuing all exceptions
|
148
182
|
|
149
|
-
#
|
183
|
+
# v1.0.0
|
150
184
|
* Feb 3, 2015
|
151
185
|
|
152
186
|
- [BREAKING CHANGE] `Apartment::Tenant.process` is deprecated in favour of `Apartment::Tenant.switch`
|
@@ -154,27 +188,27 @@
|
|
154
188
|
- Raise proper `TenantNotFound`, `TenantExists` exceptions
|
155
189
|
- Deprecate old `SchemaNotFound`, `DatabaseNotFound` exceptions
|
156
190
|
|
157
|
-
#
|
191
|
+
# v0.26.1
|
158
192
|
* Jan 13, 2015
|
159
193
|
|
160
194
|
- Fixed [schema quoting bug](https://github.com/influitive/apartment/issues/198#issuecomment-69782651) [jonsgreen]
|
161
195
|
|
162
|
-
#
|
196
|
+
# v0.26.0
|
163
197
|
* Jan 5, 2015
|
164
198
|
|
165
199
|
- Rails 4.2 support
|
166
200
|
|
167
|
-
#
|
201
|
+
# v0.25.2
|
168
202
|
* Sept 8, 2014
|
169
203
|
|
170
204
|
- Heroku fix on `assets:precompile` - pull/169 [rabbitt]
|
171
205
|
|
172
|
-
#
|
206
|
+
# v0.25.1
|
173
207
|
* July 17, 2014
|
174
208
|
|
175
209
|
- Fixed a few vestiges of Apartment::Database
|
176
210
|
|
177
|
-
#
|
211
|
+
# v0.25.0
|
178
212
|
* July 3, 2014
|
179
213
|
|
180
214
|
- [BREAKING CHANGE] - `Apartment::Database` is not deprecated in favour of
|
@@ -182,23 +216,23 @@
|
|
182
216
|
- ActiveRecord (and Rails) 4.1 now supported
|
183
217
|
- A new sql based adapter that dumps the schema using sql
|
184
218
|
|
185
|
-
#
|
219
|
+
# v0.24.3
|
186
220
|
* March 5, 2014
|
187
221
|
|
188
222
|
- Rake enhancements weren't removed from the generator template
|
189
223
|
|
190
|
-
#
|
224
|
+
# v0.24.2
|
191
225
|
* February 24, 2014
|
192
226
|
|
193
227
|
- Better warnings if `apartment:migrate` is run
|
194
228
|
|
195
|
-
#
|
229
|
+
# v0.24.1
|
196
230
|
* February 21, 2014
|
197
231
|
|
198
232
|
- requiring `apartment/tasks/enhancements` in an initializer doesn't work
|
199
233
|
- One can disable tenant migrations using `Apartment.db_migrate_tenants = false` in the Rakefile
|
200
234
|
|
201
|
-
#
|
235
|
+
# v0.24
|
202
236
|
* February 21, 2014 (In honour of the Women's Gold Medal in Hockey at Sochi)
|
203
237
|
|
204
238
|
- [BREAKING CHANGE] `apartment:migrate` task no longer depends on `db:migrate`
|
@@ -209,31 +243,31 @@
|
|
209
243
|
- This is an ongoing effort to completely replace 'database' with 'tenant' as a better abstraction
|
210
244
|
- Note the obvious `Apartment::Database` still exists but will hopefully become `Apartment::Tenant` soon
|
211
245
|
|
212
|
-
#
|
246
|
+
# v0.23.2
|
213
247
|
* January 9, 2014
|
214
248
|
|
215
249
|
- Increased visibility of #parse_database_name warning
|
216
250
|
|
217
|
-
#
|
251
|
+
# v0.23.1
|
218
252
|
* January 8, 2014
|
219
253
|
|
220
254
|
- Schema adapters now initialize with default and persistent schemas
|
221
255
|
- Deprecated Apartment::Elevators#parse_database_name
|
222
256
|
|
223
|
-
#
|
257
|
+
# v0.23.0
|
224
258
|
* August 21, 2013
|
225
259
|
|
226
260
|
- Subdomain Elevator now allows for exclusions
|
227
261
|
- Delayed::Job has been completely removed
|
228
262
|
|
229
|
-
#
|
263
|
+
# v0.22.1
|
230
264
|
* August 21, 2013
|
231
265
|
|
232
266
|
- Fix bug where if your ruby process importing the database schema is run
|
233
267
|
from a directory other than the app root, Apartment wouldn't know what
|
234
268
|
schema_migrations to insert into the database (Rails only)
|
235
269
|
|
236
|
-
#
|
270
|
+
# v0.22.0
|
237
271
|
* June 9, 2013
|
238
272
|
|
239
273
|
- Numerous bug fixes:
|
@@ -244,42 +278,42 @@
|
|
244
278
|
- Official Sidekiq support with the [apartment-sidekiq gem](https://github.com/influitive/apartment-sidekiq)
|
245
279
|
|
246
280
|
|
247
|
-
#
|
281
|
+
# v0.21.1
|
248
282
|
* May 31, 2013
|
249
283
|
|
250
284
|
- Clearing the AR::QueryCache after switching databases.
|
251
285
|
- Fixes issue with stale model being loaded for schema adapters
|
252
286
|
|
253
|
-
#
|
287
|
+
# v0.21.0
|
254
288
|
* April 24, 2013
|
255
289
|
|
256
290
|
- JDBC support!! [PetrolMan]
|
257
291
|
|
258
|
-
#
|
292
|
+
# v0.20.0
|
259
293
|
* Feb 6, 2013
|
260
294
|
|
261
295
|
- Mysql now has a 'schema like' option to perform like Postgresql (default)
|
262
296
|
- This should be significantly more performant than using connections
|
263
297
|
- Psych is now supported for Delayed::Job yaml parsing
|
264
298
|
|
265
|
-
#
|
299
|
+
# v0.19.2
|
266
300
|
* Jan 30, 2013
|
267
301
|
|
268
302
|
- Database schema file can now be set manually or skipped altogether
|
269
303
|
|
270
|
-
#
|
304
|
+
# v0.19.1
|
271
305
|
* Jan 30, 2013
|
272
306
|
|
273
307
|
- Allow schema.rb import file to be specified in config or skip schema.rb import altogether
|
274
308
|
|
275
|
-
#
|
309
|
+
# v0.19.0
|
276
310
|
* Dec 29, 2012
|
277
311
|
|
278
312
|
- Apartment is now threadsafe
|
279
313
|
- New postgis adapter [zonpantli]
|
280
314
|
- Removed ActionDispatch dependency for use with Rack apps (regression)
|
281
315
|
|
282
|
-
#
|
316
|
+
# v0.18.0
|
283
317
|
* Nov 27, 2012
|
284
318
|
|
285
319
|
- Added `append_environment` config option [virtualstaticvoid]
|
@@ -287,19 +321,19 @@
|
|
287
321
|
- Added `connection_class` config option [smashtank]
|
288
322
|
- Fixed a [bug](https://github.com/influitive/apartment/issues/17#issuecomment-10758327) in pg adapter when missing schema
|
289
323
|
|
290
|
-
#
|
324
|
+
# v0.17.1
|
291
325
|
* Oct 30, 2012
|
292
326
|
|
293
327
|
- Fixed a bug where switching to an unknown db in mysql2 would crash the app [Frodotus]
|
294
328
|
|
295
|
-
#
|
329
|
+
# v0.17.0
|
296
330
|
* Sept 26, 2012
|
297
331
|
|
298
332
|
- Apartment has [a new home!](https://github.com/influitive/apartment)
|
299
333
|
- Support Sidekiq hooks to switch dbs [maedhr]
|
300
334
|
- Allow VERSION to be used on apartment:migrate [Bhavin Kamani]
|
301
335
|
|
302
|
-
#
|
336
|
+
# v0.16.0
|
303
337
|
* June 1, 2012
|
304
338
|
|
305
339
|
- Apartment now supports a default_schema to be set, rather than relying on ActiveRecord's default schema_search_path
|
@@ -308,50 +342,50 @@
|
|
308
342
|
- There is now a full domain based elevator to switch dbs based on the whole domain [lcowell]
|
309
343
|
- There is now a generic elevator that takes a Proc to switch dbs based on the return value of that proc.
|
310
344
|
|
311
|
-
#
|
345
|
+
# v0.15.0
|
312
346
|
* March 18, 2012
|
313
347
|
|
314
348
|
- Remove Rails dependency, Apartment can now be used with any Rack based framework using ActiveRecord
|
315
349
|
|
316
|
-
#
|
350
|
+
# v0.14.4
|
317
351
|
* March 8, 2012
|
318
352
|
|
319
353
|
- Delayed::Job Hooks now return to the previous database, rather than resetting
|
320
354
|
|
321
|
-
#
|
355
|
+
# v0.14.3
|
322
356
|
* Feb 21, 2012
|
323
357
|
|
324
358
|
- Fix yaml serialization of non DJ models
|
325
359
|
|
326
|
-
#
|
360
|
+
# v0.14.2
|
327
361
|
* Feb 21, 2012
|
328
362
|
|
329
363
|
- Fix Delayed::Job yaml encoding with Rails > 3.0.x
|
330
364
|
|
331
|
-
#
|
365
|
+
# v0.14.1
|
332
366
|
* Dec 13, 2011
|
333
367
|
|
334
368
|
- Fix ActionDispatch::Callbacks deprecation warnings
|
335
369
|
|
336
|
-
#
|
370
|
+
# v0.14.0
|
337
371
|
* Dec 13, 2011
|
338
372
|
|
339
373
|
- Rails 3.1 Support
|
340
374
|
|
341
|
-
#
|
375
|
+
# v0.13.1
|
342
376
|
* Nov 8, 2011
|
343
377
|
|
344
378
|
- Reset prepared statement cache for rails 3.1.1 before switching dbs when using postgresql schemas
|
345
379
|
- Only necessary until the next release which will be more schema aware
|
346
380
|
|
347
|
-
#
|
381
|
+
# v0.13.0
|
348
382
|
* Oct 25, 2011
|
349
383
|
|
350
384
|
- `process` will now rescue with reset if the previous schema/db is no longer available
|
351
385
|
- `create` now takes an optional block which allows you to process within the newly created db
|
352
386
|
- 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
|
353
387
|
|
354
|
-
#
|
388
|
+
# v0.12.0
|
355
389
|
* Oct 4, 2011
|
356
390
|
|
357
391
|
- Added a `drop` method for removing databases/schemas
|
@@ -359,7 +393,7 @@
|
|
359
393
|
- Excluded models now take string references so they are properly reloaded in development
|
360
394
|
- Better silencing of `schema.rb` loading using `verbose` flag
|
361
395
|
|
362
|
-
#
|
396
|
+
# v0.11.1
|
363
397
|
* Sep 22, 2011
|
364
398
|
|
365
399
|
- Better use of Railties for initializing apartment
|
@@ -367,88 +401,88 @@
|
|
367
401
|
- Added reloader middleware in development to init Apartment on each request
|
368
402
|
- Override `reload!` in console to also init Apartment
|
369
403
|
|
370
|
-
#
|
404
|
+
# v0.11.0
|
371
405
|
* Sep 20, 2011
|
372
406
|
|
373
407
|
- Excluded models no longer use a different connection when using postgresql schemas. Instead their table_name is prefixed with `public.`
|
374
408
|
|
375
|
-
#
|
409
|
+
# v0.10.3
|
376
410
|
* Sep 20, 2011
|
377
411
|
|
378
412
|
- Fix improper raising of exceptions on create and reset
|
379
413
|
|
380
|
-
#
|
414
|
+
# v0.10.2
|
381
415
|
* Sep 15, 2011
|
382
416
|
|
383
417
|
- Remove all the annoying logging for loading db schema and seeding on create
|
384
418
|
|
385
|
-
#
|
419
|
+
# v0.10.1
|
386
420
|
* Aug 11, 2011
|
387
421
|
|
388
422
|
- Fixed bug in DJ where new objects (that hadn't been pulled from the db) didn't have the proper database assigned
|
389
423
|
|
390
|
-
#
|
424
|
+
# v0.10.0
|
391
425
|
* July 29, 2011
|
392
426
|
|
393
427
|
- Added better support for Delayed Job
|
394
428
|
- New config option that enables Delayed Job wrappers
|
395
429
|
- 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
|
396
430
|
|
397
|
-
#
|
431
|
+
# v0.9.2
|
398
432
|
* July 4, 2011
|
399
433
|
|
400
434
|
- Migrations now run associated rails migration fully, fixes schema.rb not being reloaded after migrations
|
401
435
|
|
402
|
-
#
|
436
|
+
# v0.9.1
|
403
437
|
* June 24, 2011
|
404
438
|
|
405
439
|
- Hooks now take the payload object as an argument to fetch the proper db for DJ hooks
|
406
440
|
|
407
|
-
#
|
441
|
+
# v0.9.0
|
408
442
|
* June 23, 2011
|
409
443
|
|
410
444
|
- Added module to provide delayed job hooks
|
411
445
|
|
412
|
-
#
|
446
|
+
# v0.8.0
|
413
447
|
* June 23, 2011
|
414
448
|
|
415
449
|
- Added #current_database which will return the current database (or schema) name
|
416
450
|
|
417
|
-
#
|
451
|
+
# v0.7.0
|
418
452
|
* June 22, 2011
|
419
453
|
|
420
454
|
- Added apartment:seed rake task for seeding all dbs
|
421
455
|
|
422
|
-
#
|
456
|
+
# v0.6.0
|
423
457
|
* June 21, 2011
|
424
458
|
|
425
459
|
- Added #process to connect to new db, perform operations, then ensure a reset
|
426
460
|
|
427
|
-
#
|
461
|
+
# v0.5.1
|
428
462
|
* June 21, 2011
|
429
463
|
|
430
464
|
- Fixed db migrate up/down/rollback
|
431
465
|
- added db:redo
|
432
466
|
|
433
|
-
#
|
467
|
+
# v0.5.0
|
434
468
|
* June 20, 2011
|
435
469
|
|
436
470
|
- Added the concept of an "Elevator", a rack based strategy for db switching
|
437
471
|
- Added the Subdomain Elevator middleware to enabled db switching based on subdomain
|
438
472
|
|
439
|
-
#
|
473
|
+
# v0.4.0
|
440
474
|
* June 14, 2011
|
441
475
|
|
442
476
|
- Added `configure` method on Apartment instead of using yml file, allows for dynamic setting of db names to migrate for rake task
|
443
477
|
- Added `seed_after_create` config option to import seed data to new db on create
|
444
478
|
|
445
|
-
#
|
479
|
+
# v0.3.0
|
446
480
|
* June 10, 2011
|
447
481
|
|
448
482
|
- Added full support for database migration
|
449
483
|
- Added in method to establish new connection for excluded models on startup rather than on each switch
|
450
484
|
|
451
|
-
#
|
485
|
+
# v0.2.0
|
452
486
|
* June 6, 2011 *
|
453
487
|
|
454
488
|
- Refactor to use more rails/active_support functionality
|
@@ -456,7 +490,7 @@
|
|
456
490
|
- Remove OStruct and just use hashes for fetching methods
|
457
491
|
- Added schema load on create instead of migrating from scratch
|
458
492
|
|
459
|
-
#
|
493
|
+
# v0.1.3
|
460
494
|
* March 30, 2011 *
|
461
495
|
|
462
496
|
- Original pass from Ryan
|