Skip to content

Commit

Permalink
SQLite: deprecate the 'dbfile' option in favor of 'database.'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Aug 2, 2009
1 parent d37ac79 commit 32cfd4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions activerecord/CHANGELOG
@@ -1,3 +1,8 @@
*2.3.4 (pending)*

* SQLite: deprecate the 'dbfile' option in favor of 'database.' #2363 [Paul Hinze, Jeremy Kemper]


*2.3.3 (July 12, 2009)*

* Added :primary_key option to belongs_to associations. #765 [Szymon Nowak, Philip Hallstrom, Noel Rocha]
Expand Down
Expand Up @@ -27,6 +27,10 @@ def sqlite_connection(config) # :nodoc:

private
def parse_sqlite_config!(config)
if config.include?(:dbfile)
ActiveSupport::Deprecation.warn "Please update config/database.yml to use 'database' instead of 'dbfile'"
end

config[:database] ||= config[:dbfile]
# Require database.
unless config[:database]
Expand Down

0 comments on commit 32cfd4c

Please sign in to comment.