diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 10:32:24 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 10:32:24 +0000 |
commit | 5b1a1bf5bfc520248285b036672146122dd2a815 (patch) | |
tree | 31d82a9155db6c9e553888da6375bd89fdb122cf /activemodel/test/schema.rb | |
parent | 93e2d378df5f599e3e48e74932f37e1c679f633e (diff) | |
download | rails-5b1a1bf5bfc520248285b036672146122dd2a815.tar.gz rails-5b1a1bf5bfc520248285b036672146122dd2a815.tar.bz2 rails-5b1a1bf5bfc520248285b036672146122dd2a815.zip |
Make Active Model test suite similar to Active Record
Diffstat (limited to 'activemodel/test/schema.rb')
-rw-r--r-- | activemodel/test/schema.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/activemodel/test/schema.rb b/activemodel/test/schema.rb new file mode 100644 index 0000000000..3f289c63f8 --- /dev/null +++ b/activemodel/test/schema.rb @@ -0,0 +1,22 @@ +ActiveRecord::Schema.define do + create_table :topics, :force => true do |t| + t.string :title + t.string :author_name + t.string :author_email_address + t.datetime :written_on + t.time :bonus_time + t.date :last_read + t.text :content + t.boolean :approved, :default => true + t.integer :replies_count, :default => 0 + t.integer :parent_id + t.string :type + end + + create_table :developers, :force => true do |t| + t.string :name + t.integer :salary, :default => 70000 + t.datetime :created_at + t.datetime :updated_at + end +end |