Migration, should not be dependent on an active record model. It'll brake when a Repository's behaviour is altered. A minimal model to do the migration task can be defined inside the migration.
```ruby
class RepositoryAddFeed < ActiveRecord::Migration
  class Repository < ActiveRecord::Base
     # ... needed associations and methods ...
  end
  # ... the migration ...
end  
```