diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-19 11:44:59 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-19 11:44:59 +0000 |
commit | a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5 (patch) | |
tree | 58530a4fc2bfe847ef12df8321675aaa9f60041a /activerecord/test/fixtures/db_definitions | |
parent | 87b0d72fe6f97a6364a67228fdcd3a6e3a40f602 (diff) | |
download | rails-a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5.tar.gz rails-a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5.tar.bz2 rails-a2130c22d779ae0cd52a7fd60edd3a6db9ca83a5.zip |
Set a high default salary within the validation range
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/db_definitions')
4 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/fixtures/db_definitions/mysql.sql b/activerecord/test/fixtures/db_definitions/mysql.sql index c86a7e0141..137fbaa73e 100755 --- a/activerecord/test/fixtures/db_definitions/mysql.sql +++ b/activerecord/test/fixtures/db_definitions/mysql.sql @@ -36,7 +36,7 @@ CREATE TABLE `topics` ( CREATE TABLE `developers` ( `id` int(11) NOT NULL auto_increment, `name` varchar(100) default NULL, - `salary` int(11) NULL, + `salary` int(11) default 70000, PRIMARY KEY (`id`) ); diff --git a/activerecord/test/fixtures/db_definitions/postgresql.sql b/activerecord/test/fixtures/db_definitions/postgresql.sql index e061c214d2..4ca0e9ddc3 100644 --- a/activerecord/test/fixtures/db_definitions/postgresql.sql +++ b/activerecord/test/fixtures/db_definitions/postgresql.sql @@ -29,7 +29,7 @@ CREATE TABLE developers_projects ( CREATE TABLE developers ( id serial, name character varying(100), - salary integer, + salary integer DEFAULT 70000, PRIMARY KEY (id) ); SELECT setval('developers_id_seq', 100); diff --git a/activerecord/test/fixtures/db_definitions/sqlite.sql b/activerecord/test/fixtures/db_definitions/sqlite.sql index c278651f3b..832a1a7d31 100644 --- a/activerecord/test/fixtures/db_definitions/sqlite.sql +++ b/activerecord/test/fixtures/db_definitions/sqlite.sql @@ -33,7 +33,7 @@ CREATE TABLE 'topics' ( CREATE TABLE 'developers' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' TEXT DEFAULT NULL, - 'salary' INTEGER NULL + 'salary' INTEGER 70000 ); CREATE TABLE 'projects' ( diff --git a/activerecord/test/fixtures/db_definitions/sqlserver.sql b/activerecord/test/fixtures/db_definitions/sqlserver.sql index d5ed66c55b..0cc8899945 100644 --- a/activerecord/test/fixtures/db_definitions/sqlserver.sql +++ b/activerecord/test/fixtures/db_definitions/sqlserver.sql @@ -41,7 +41,7 @@ CREATE TABLE developers ( CREATE TABLE projects ( id int NOT NULL IDENTITY(1, 1), name varchar(100) default NULL, - salary int default NULL, + salary int default 70000, PRIMARY KEY (id) ); |