fixed gemfile and index pg