diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-08-10 22:21:25 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-08-10 22:21:25 +0530 |
commit | 14575893010add4db926c3e8517c360ea62625c2 (patch) | |
tree | 1b38289bd440a43c2d4fa46751421a3a62c0c5f5 /activerecord/lib/active_record | |
parent | 4f5f59a492bd32afa476ac6b51ca5295b70fe246 (diff) | |
download | rails-14575893010add4db926c3e8517c360ea62625c2.tar.gz rails-14575893010add4db926c3e8517c360ea62625c2.tar.bz2 rails-14575893010add4db926c3e8517c360ea62625c2.zip |
Remove sqlite specific`supports_autoincrement?` which always defaults to true
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index df489a5b1f..472a96400d 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -180,11 +180,6 @@ module ActiveRecord true end - # Returns true - def supports_autoincrement? #:nodoc: - true - end - def supports_index_sort_order? true end @@ -606,11 +601,7 @@ module ActiveRecord end def default_primary_key_type - if supports_autoincrement? - 'INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL' - else - 'INTEGER PRIMARY KEY NOT NULL' - end + 'INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL' end def translate_exception(exception, message) |