diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-01 13:18:51 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-01 13:18:51 +0000 |
commit | 0daa29ece29191b288fe86d3616bea0357325419 (patch) | |
tree | 7a86e47e5b7c68467c1ef01e08be0ac24faf29a9 /activerecord/test/fixtures | |
parent | 50f333b203756009acff2457b6d1c9da3b532cad (diff) | |
download | rails-0daa29ece29191b288fe86d3616bea0357325419.tar.gz rails-0daa29ece29191b288fe86d3616bea0357325419.tar.bz2 rails-0daa29ece29191b288fe86d3616bea0357325419.zip |
Added proper handling of time fields that are turned into Time objects with the dummy date of 2000/1/1 [HariSeldon]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@40 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
4 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/mysql.sql b/activerecord/test/fixtures/db_definitions/mysql.sql index 766c0ec71f..0b96c49dd3 100755 --- a/activerecord/test/fixtures/db_definitions/mysql.sql +++ b/activerecord/test/fixtures/db_definitions/mysql.sql @@ -23,6 +23,7 @@ CREATE TABLE `topics` ( `author_name` varchar(255) default NULL, `author_email_address` varchar(255) default NULL, `written_on` datetime default NULL, + `bonus_time` time default NULL, `last_read` date default NULL, `content` text, `approved` tinyint(1) default 1, diff --git a/activerecord/test/fixtures/db_definitions/postgresql.sql b/activerecord/test/fixtures/db_definitions/postgresql.sql index e83356627b..87db0b7f3f 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.sql +++ b/activerecord/test/fixtures/db_definitions/postgresql.sql @@ -46,6 +46,7 @@ CREATE TABLE topics ( author_name character varying(255), author_email_address character varying(255), written_on timestamp without time zone, + bonus_time time, last_read date, content text, replies_count integer default 0, diff --git a/activerecord/test/fixtures/db_definitions/sqlite.sql b/activerecord/test/fixtures/db_definitions/sqlite.sql index cb617305dc..91ca172789 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite.sql +++ b/activerecord/test/fixtures/db_definitions/sqlite.sql @@ -21,6 +21,7 @@ CREATE TABLE 'topics' ( 'author_name' VARCHAR(255) DEFAULT NULL, 'author_email_address' VARCHAR(255) DEFAULT NULL, 'written_on' DATETIME DEFAULT NULL, + 'bonus_time' TIME DEFAULT NULL, 'last_read' DATE DEFAULT NULL, 'content' TEXT, 'approved' INTEGER DEFAULT 1, diff --git a/activerecord/test/fixtures/topics/first b/activerecord/test/fixtures/topics/first index 9972a578c8..2e1a88563b 100755 --- a/activerecord/test/fixtures/topics/first +++ b/activerecord/test/fixtures/topics/first @@ -3,6 +3,7 @@ title => The First Topic author_name => David author_email_address => david@loudthinking.com written_on => 2003-07-16 15:28 +bonus_time => 12:13:14 last_read => 2004-04-15 content => Have a nice day approved => 0 |