diff options
author | Andrey Deryabin <deriabin@gmail.com> | 2012-04-27 13:29:58 +0700 |
---|---|---|
committer | Andrey Deryabin <deriabin@gmail.com> | 2012-04-27 13:29:58 +0700 |
commit | dd05a49a4aa037ed2dc95339c5e0c8eab75f862e (patch) | |
tree | 1c4a59dea8e1ef595644b27b068f2a45880da51a /activerecord/lib | |
parent | 3cc9b5f1963773f173c1e8b48b62c18bff5e4dd8 (diff) | |
download | rails-dd05a49a4aa037ed2dc95339c5e0c8eab75f862e.tar.gz rails-dd05a49a4aa037ed2dc95339c5e0c8eab75f862e.tar.bz2 rails-dd05a49a4aa037ed2dc95339c5e0c8eab75f862e.zip |
renamed class SQLiteColumn to SQLite3Column
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index de316a0d21..83f75e3505 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -37,7 +37,7 @@ module ActiveRecord end module ConnectionAdapters #:nodoc: - class SQLiteColumn < Column #:nodoc: + class SQLite3Column < Column #:nodoc: class << self def binary_to_string(value) if value.encoding != Encoding::ASCII_8BIT @@ -380,7 +380,7 @@ module ActiveRecord name && tables('SCHEMA', name).any? end - # Returns an array of +SQLiteColumn+ objects for the table specified by +table_name+. + # Returns an array of +SQLite3Column+ objects for the table specified by +table_name+. def columns(table_name) #:nodoc: table_structure(table_name).map do |field| case field["dflt_value"] @@ -392,7 +392,7 @@ module ActiveRecord field["dflt_value"] = $1.gsub('""', '"') end - SQLiteColumn.new(field['name'], field['dflt_value'], field['type'], field['notnull'].to_i == 0) + SQLite3Column.new(field['name'], field['dflt_value'], field['type'], field['notnull'].to_i == 0) end end |