Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make migrations work with the latest SQLite

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1458 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 0bdd44accae978a04f51b1adace09db3a6f77f33 1 parent aa49feb
@dhh dhh authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
View
20 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -90,16 +90,16 @@ class SQLiteAdapter < AbstractAdapter
def native_database_types
{
:primary_key => "INTEGER PRIMARY KEY NOT NULL",
- :string => "VARCHAR(255)",
- :text => "TEXT",
- :integer => "INTEGER",
- :float => "float",
- :datetime => "DATETIME",
- :timestamp => "DATETIME",
- :time => "DATETIME",
- :date => "DATE",
- :binary => "BLOB",
- :boolean => "INTEGER"
+ :string => { :name => "varchar", :limit => 255 },
+ :text => { :name => "text" },
+ :integer => { :name => "integer" },
+ :float => { :name => "float" },
+ :datetime => { :name => "datetime" },
+ :timestamp => { :name => "datetime" },
+ :time => { :name => "datetime" },
+ :date => { :name => "date" },
+ :binary => { :name => "blob" },
+ :boolean => { :name => "integer" }
}
end
Please sign in to comment.
Something went wrong with that request. Please try again.