diff options
Diffstat (limited to 'activerecord/test/fixtures/db_definitions/schema2.rb')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/schema2.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema2.rb b/activerecord/test/fixtures/db_definitions/schema2.rb new file mode 100644 index 0000000000..863237d271 --- /dev/null +++ b/activerecord/test/fixtures/db_definitions/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 |