aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/schema.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-03-20 22:21:27 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-03-20 22:21:27 +0000
commit6173e5bfaec44729ecabc2e6e05aa2608a85981f (patch)
treed3379362c0cfb3f16867b56d1c2931bb02d12b86 /activemodel/test/schema.rb
parent08a99d0eac9370b590220953283475e00e3183e6 (diff)
downloadrails-6173e5bfaec44729ecabc2e6e05aa2608a85981f.tar.gz
rails-6173e5bfaec44729ecabc2e6e05aa2608a85981f.tar.bz2
rails-6173e5bfaec44729ecabc2e6e05aa2608a85981f.zip
Add ActiveModel::Validations tests for regular ruby classes
Diffstat (limited to 'activemodel/test/schema.rb')
-rw-r--r--activemodel/test/schema.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/activemodel/test/schema.rb b/activemodel/test/schema.rb
index f7fe31dc4e..56b824d445 100644
--- a/activemodel/test/schema.rb
+++ b/activemodel/test/schema.rb
@@ -1,13 +1,14 @@
ActiveRecord::Schema.define do
create_table :topics, :force => true do |t|
- t.string :title
- t.string :author_name
- t.text :content
- t.boolean :approved, :default => true
- t.string :type
+ t.string :title
+ t.string :author_name
+ t.text :content
+ t.boolean :approved, :default => true
+ t.string :type
end
create_table :developers, :force => true do |t|
- t.string :name
+ t.string :name
+ t.float :salary
end
end