fix spec/schema.rb to include flaggings_count and make tests pass
adding with_flag scope to Flagging
allow bundler <= 1.7 in gemspec