README.md in sequel-rails-0.9.2 vs README.md in sequel-rails-0.9.3
- old
+ new
@@ -101,11 +101,11 @@
```
Session:
```ruby
- rails generate session_migration
+ rails generate sequel:session_migration
```
3. Rake tasks similar to `ActiveRecord`, see
[Available sequel specific rake tasks](#available-sequel-specific-rake-tasks)
@@ -176,10 +176,12 @@
collation: en_US.UTF-8 # Optional
ctype: en_US.UTF-8 # Optional
template: template1 # Optional
tablespace: non_default_tablespace_name # Optional
max_connections: 20 # Optional, also accept 'pool' as key, if both are present 'max_connections' is used (default to nil, Sequel default is 4)
+ url: "postgres://myuser:mypass@host/somedatabase" # Optional, if present it's passed to `Sequel.connect` with other config as options
+ # If url is not set in config file, environment variable `DATABASE_URL` is used
```
2. For MySQL:
```yaml
@@ -190,10 +192,12 @@
password: password
host: 10.0.0.2 # Optional
port: 5432 # Optional
charset: latin1 # Optional (defaults to 'utf8')
collation: latin1_general_ci # Optional (defaults to 'utf8_unicode_ci')
+ url: "mysql://myuser:mypass@host/somedatabase" # Optional, if present it's passed to `Sequel.connect` with other config as options
+ # If url is not set in config file, environment variable `DATABASE_URL` is used
```
2. For SQLite:
```yaml
@@ -240,11 +244,11 @@
You can then generate a migration for the session table using the provided
generator:
```bash
-rails generate session_migration
+rails generate sequel:session_migration
rake db:migrate
```
Optionally if you want to use your own `Sequel` model to handle the session,
you can do so in your `config/initializers/session.rb`:
@@ -335,9 +339,10 @@
* Jan Berdajs (mrbrdo)
* Robert Payne (robertjpayne)
* Kevin Menard (nirvdrum)
* Chris Heisterkamp (cheister)
* Tamir Duberstein (tamird)
+* shelling (shelling)
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.