Adding ES to gemfile
Added active record support and created subject model