diff options
author | Michael Koziarski <michael@koziarski.com> | 2005-10-06 04:15:14 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2005-10-06 04:15:14 +0000 |
commit | 656fb866f91a87677ce501d3c9ad6aba9048d00f (patch) | |
tree | c6db1f2d6fc045aa428cc7575aec87e74f1f8957 /activerecord/test/fixtures | |
parent | 0639e1ca7c63afa79b54cc1eb73871026f9b473d (diff) | |
download | rails-656fb866f91a87677ce501d3c9ad6aba9048d00f.tar.gz rails-656fb866f91a87677ce501d3c9ad6aba9048d00f.tar.bz2 rails-656fb866f91a87677ce501d3c9ad6aba9048d00f.zip |
Quote booleans according the rules defined by the adapter
* SQLite schema has been updated
* Postgresql schema needs to be fixed too
Simplify AR::Base#toggle to store the boolean, not the quoted value
* expand the tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2474 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/sqlite.sql | 2 | ||||
-rw-r--r-- | activerecord/test/fixtures/topics.yml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/fixtures/db_definitions/sqlite.sql b/activerecord/test/fixtures/db_definitions/sqlite.sql index d5879c31d8..1f8a2614dd 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite.sql +++ b/activerecord/test/fixtures/db_definitions/sqlite.sql @@ -24,7 +24,7 @@ CREATE TABLE 'topics' ( 'bonus_time' TIME DEFAULT NULL, 'last_read' DATE DEFAULT NULL, 'content' TEXT, - 'approved' INTEGER DEFAULT 1, + 'approved' boolean DEFAULT 'f', 'replies_count' INTEGER DEFAULT 0, 'parent_id' INTEGER DEFAULT NULL, 'type' VARCHAR(255) DEFAULT NULL diff --git a/activerecord/test/fixtures/topics.yml b/activerecord/test/fixtures/topics.yml index 313999b1ee..6d4f5d800b 100644 --- a/activerecord/test/fixtures/topics.yml +++ b/activerecord/test/fixtures/topics.yml @@ -7,7 +7,7 @@ first: last_read: 2004-04-15 bonus_time: 2005-01-30t15:28:00.00+01:00 content: Have a nice day - approved: '0' + approved: false replies_count: 0 second: @@ -16,6 +16,6 @@ second: author_name: Mary written_on: 2003-07-15t15:28:00.00+01:00 content: Have a nice day - approved: '1' + approved: true replies_count: 2 parent_id: 1 |