aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema2.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-01-18 07:29:00 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-01-18 07:29:00 +0000
commit105a27f39ee9dbfd7fdb2b25e5ba38b00708b66c (patch)
tree73baffa2e840db4ec39906ebd1b09d19464aee7b /activerecord/test/schema/schema2.rb
parente899a83a85e4c77f9151120ed2ab7afa0b2b3245 (diff)
downloadrails-105a27f39ee9dbfd7fdb2b25e5ba38b00708b66c.tar.gz
rails-105a27f39ee9dbfd7fdb2b25e5ba38b00708b66c.tar.bz2
rails-105a27f39ee9dbfd7fdb2b25e5ba38b00708b66c.zip
move schema
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/schema/schema2.rb')
-rw-r--r--activerecord/test/schema/schema2.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema2.rb b/activerecord/test/schema/schema2.rb
new file mode 100644
index 0000000000..863237d271
--- /dev/null
+++ b/activerecord/test/schema/schema2.rb
@@ -0,0 +1,11 @@
+ActiveRecord::Schema.define do
+
+ # adapter name is checked because we are under a transition of
+ # moving the sql files under activerecord/test/fixtures/db_definitions
+ # to this file, schema.rb.
+ if adapter_name == "MySQL"
+ Course.connection.create_table :courses, :force => true do |t|
+ t.column :name, :string, :null => false
+ end
+ end
+end