README.md in sequel-rails-0.9.11 vs README.md in sequel-rails-0.9.12
- old
+ new
@@ -55,10 +55,32 @@
# require "active_record/railtie"
require "action_mailer/railtie"
require "sprockets/railtie"
```
+Then you need to get rid of `ActiveRecord` configurations, that is if you
+didn't generate the new app with `-O` (or the long form `--skip-active-record`):
+
+`config/application.rb` and `config/environments/*.rb`
+
+For example in a fresh `Rails 4.2.4`, you would need to remove those lines:
+
+```
+config/application.rb
+line 27: config.active_record.raise_in_transactional_callbacks = true
+```
+
+```
+config/environments/development.rb
+line 23: config.active_record.migration_error = :page_load
+```
+
+```
+config/environments/production.rb
+line 78: config.active_record.dump_schema_after_migration = false
+```
+
Starting with sequel-rails 0.4.0.pre3 we don't change default Sequel behaviour
nor include any plugin by default, if you want to get back the previous
behaviour, you can create a new initializer (eg: `config/initializers/sequel.rb`)
with content:
@@ -147,16 +169,26 @@
# These override corresponding settings from the database config.
config.sequel.max_connections = 16
config.sequel.search_path = %w(mine public)
- # Configure whether database's rake tasks will be loaded or not
+ # Configure whether database's rake tasks will be loaded or not.
+ #
+ # If passed a String or Symbol, this will replace the `db:` namespace for
+ # the database's Rake tasks.
+ #
+ # ex: config.sequel.load_database_tasks = :sequel
+ # will results in `rake db:migrate` to become `rake sequel:migrate`
+ #
# Defaults to true
config.sequel.load_database_tasks = false
# This setting disabled the automatic connect after Rails init
config.sequel.skip_connect = true
+
+ # If you want to use a specific logger
+ config.sequel.logger = MyLogger.new($stdout)
```
The connection settings are read from the file `config/database.yml` and is
expected to be similar to `ActiveRecord`'s format.
@@ -325,11 +357,11 @@
* Brasten Sager (brasten) - Project creator
Contributors
============
-Improvements has been made by those awesome contributors:
+Improvements have been made by those awesome contributors:
* Benjamin Atkin (benatkin)
* Gabor Ratky (rgabo)
* Joshua Hansen (binarypaladin)
* Arron Washington (radicaled)
@@ -352,14 +384,17 @@
* a3gis (a3gis)
* Andrey Chernih (andreychernih)
* Nico Rieck (gix)
* Alexander Birkner (BirknerAlex)
* kr3ssh (kressh)
+* John Anderson (djellemah)
+* Larivact (Larivact)
+* Jan Berdajs (mrbrdo)
Credits
=======
-The [dm-rails](http://github.com/datamapper/dm-rails) team wrote most of the original code, I just sequel-ized it, but since then most of it as been either adapted or rewritten.
+The [dm-rails](http://github.com/datamapper/dm-rails) team wrote most of the original code, I just sequel-ized it, but since then most of it has been either adapted or rewritten.
Copyright
=========
Copyright (c) 2010-2013 The sequel-rails team. See [LICENSE](http://github.com/brasten/sequel-rails/blob/master/LICENSE) for details.