mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
105a27f39e
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
11 lines
359 B
Ruby
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
|