instiki/vendor/rails/activerecord/test/fixtures/db_definitions/schema2.rb

12 lines
359 B
Ruby
Raw Normal View History

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