1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/schema/schema2.rb
Jeremy Kemper 105a27f39e move schema
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-18 07:29:00 +00:00

11 lines
359 B
Ruby

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