aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema2.rb
blob: 863237d27152a2e4dca0436fde5be2eabdce6586 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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