aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/warehouse_thing.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-01-05 14:58:28 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-01-05 14:58:28 +0000
commitebe3a0d532152d47f270ffaa0e11b994f4a8b177 (patch)
treed25ff07781cc30994316e9e34378ffea8725cf00 /activerecord/test/fixtures/warehouse_thing.rb
parent139b92495fa7697cdd619c549d4c7b263562b761 (diff)
downloadrails-ebe3a0d532152d47f270ffaa0e11b994f4a8b177.tar.gz
rails-ebe3a0d532152d47f270ffaa0e11b994f4a8b177.tar.bz2
rails-ebe3a0d532152d47f270ffaa0e11b994f4a8b177.zip
More thoroughly quote table names. Exposes some issues with sqlite2 adapter. Closes #10698.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/warehouse_thing.rb')
-rw-r--r--activerecord/test/fixtures/warehouse_thing.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/warehouse_thing.rb b/activerecord/test/fixtures/warehouse_thing.rb
new file mode 100644
index 0000000000..6ace1183cc
--- /dev/null
+++ b/activerecord/test/fixtures/warehouse_thing.rb
@@ -0,0 +1,5 @@
+class WarehouseThing < ActiveRecord::Base
+ set_table_name "warehouse-things"
+
+ validates_uniqueness_of :value
+end \ No newline at end of file