Releases: TalentBox/sequel-rails
v0.5.0
- Loosen dependency to allow
Sequel
versions~> 4.0.0
- Add ruby 2.0.0 to TravisCI
v0.4.4
- Fix schema_dumper extension inclusion to remove deprecation warning in
Sequel 3.48 (Jacques Crocker) - Add support for dumping/loading sql schema for MySQL (Saulius Grigaliunas)
- Add support for configuring max connections in app config (Rafał Rzepecki)
v0.4.3
-
Handle
Sequel::NoMatchingRow
exception to return a404
.As of
Sequel
3.46.0
, this new standard exception class has been added.
The main use case is when no row is found when using the newDataset#first!
method, this new method raise an exception instead of returningnil
like
Dataset#first
. -
Ensure migration tasks points to migration directory's full path (Sean Sorrell)
v0.4.2
-
Add schema dump format option and sql dump/load for Postgresql (Rafał Rzepecki)
To make
rake db:dump
andrake db:load
use sql format for schema instead
of the default ruby version, put in yourconfig/application.rb
:config.sequel.schema_format = :sql
-
Improve detection of JRuby (Ed Ruder)
v0.4.1
- DRY config in rake task and fix usage under JRUBY (Ed Ruder)
- Enable JRuby in TravisCI
- Run JDBC specs when jruby is detected
- Fix problems with JDBC support when running in 1.9 mode
- Fix JDBC support for mysql and postgresql and add specs on
SequelRails::Configuration
(Jack Danger Canty) - Rescue exception when dropping database #20
v0.4.0
-
Ensure we've dropped any opened connection before trying to drop database (Ed Ruder)
-
Make dependency on railtie looser (
>= 3.2.0
) -
Do not add any Sequel plugin by default anymore. Plugins could not be removed
so it is safer to let the user add them via an initializer. Furthermore, we
were changing the default Sequel behaviour related to 'raise on save'.
All the previous plugins/behaviours of sequel-rails can be restored by
creating an initializer with:require "sequel_rails/railties/legacy_model_config"
Thanks to @dlee, for raising concerns about this behaviour in
#11
v0.4.0.pre2
- Remove
rake db:forward
andrake db:rollback
as it makes not much sense
when using the TimeStampMigration which is how this gem generates migrations - Ensure rake tasks returns appropriate code on errors
- Ensure PostgreSQL adapter passes the right options to both create and drop
database (Sascha Cunz)
v0.4.0.pre1
- Fix
rake db:drop
andrake db:schema:load
tasks (Thiago Pradi)
v0.4.0.pre
- Add Travis-CI configuration
- Ensure file name for migration are valid
- BIG CHANGE rename
Rails::Sequel
module asSequelRails
, this becomes
the namespace for all sequel-rails related classes. - Split
Rails::Sequel::Storage
class in multiple adapter for each db - Only log queries if logger level is set to :debug (matching ActiveRecord
default). - Correctly display time spent in models in controller logs.
- Add simple
ActiveSupport::Notification
support to Sequel using logger
facility. This is done by monkey patchingSequel::Database#log_yield
, so
it does not yield directly if no loggers configured and instrument the yield
call. Note that this does not allow to know from which class the query comes
from. So it still does not display theSequel::Model
subclass like
ActiveRecord
does (eg: User load). - Add spec for Sequel::Railties::LogSubscriber
- Add initial specs for railtie setup