class Cat < ActiveRecord::Base
  self.abstract_class = true

  enum gender: [:female, :male]

  scope :female, -> { where(gender: genders[:female]) }
  scope :male, -> { where(gender: genders[:male]) }

  default_scope -> { where(is_vegetarian: false) }
end

class Lion < Cat
end

class Cat < ActiveRecord::Base
  self.abstract_class = true

  enum gender: [:female, :male]

  default_scope -> { where(is_vegetarian: false) }
end

class Lion < Cat
end

Fix `warning: method redefined; discarding old female`
Fix `warning: method redefined; discarding old female`

```
$ ARCONN=mysql2 be ruby -w -Itest test/cases/scoping/default_scoping_test.rb
Using mysql2
/Users/kamipo/src/github.com/rails/rails/activerecord/lib/active_record/scoping/named.rb:158: warning: method redefined; discarding old female
/Users/kamipo/src/github.com/rails/rails/activerecord/lib/active_record/scoping/named.rb:158: warning: previous definition of female was here
/Users/kamipo/src/github.com/rails/rails/activerecord/lib/active_record/scoping/named.rb:158: warning: method redefined; discarding old male
/Users/kamipo/src/github.com/rails/rails/activerecord/lib/active_record/scoping/named.rb:158: warning: previous definition of male was here
```
