Skip to content

Revert "Mongo grave " #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ gem 'simple_form'
gem 'tweet-button'
gem 'local_time'

gem 'elasticsearch-model'
gem 'elasticsearch-rails'

# DROP BEFORE RAILS 4
# Mongo
gem 'mongoid'
Expand Down Expand Up @@ -177,7 +174,6 @@ group :test do
gem 'timecop'
gem 'vcr'
gem 'webmock', '<1.16'
gem 'stripe-ruby-mock', git: 'https://github.com/rebelidealist/stripe-ruby-mock', branch: 'live-tests'
end

group :production do
Expand Down
33 changes: 0 additions & 33 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ GIT
mime-types (>= 1.25, < 3.0)
rest-client (~> 1.4)

GIT
remote: https://github.com/rebelidealist/stripe-ruby-mock
revision: f4229cbe762bc2a5a302cdd83088c283881e9c5a
branch: live-tests
specs:
stripe-ruby-mock (1.10.1.7)
dante (>= 0.2.0)
jimson-temp
stripe (>= 1.15.0)

GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
Expand Down Expand Up @@ -116,7 +106,6 @@ GEM
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
blankslate (3.1.3)
bson (1.10.2)
bson_ext (1.10.2)
bson (~> 1.10.2)
Expand Down Expand Up @@ -184,7 +173,6 @@ GEM
httparty (~> 0.10)
json
curb (0.8.6)
dante (0.2.0)
database_cleaner (1.3.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
Expand All @@ -204,19 +192,6 @@ GEM
execjs
eco-source (1.1.0.rc.1)
ejs (1.1.1)
elasticsearch (1.0.4)
elasticsearch-api (= 1.0.4)
elasticsearch-transport (= 1.0.4)
elasticsearch-api (1.0.4)
multi_json
elasticsearch-model (0.1.4)
activesupport (> 3)
elasticsearch (> 0.4)
hashie
elasticsearch-rails (0.1.4)
elasticsearch-transport (1.0.4)
faraday
multi_json
em-http-request (1.1.2)
addressable (>= 2.3.4)
cookiejar
Expand Down Expand Up @@ -346,11 +321,6 @@ GEM
jbuilder (2.1.3)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jimson-temp (0.9.5)
blankslate (>= 3.1.2)
multi_json (~> 1.0)
rack (~> 1.4)
rest-client (~> 1.0)
journey (1.0.4)
jquery-rails (2.0.3)
railties (>= 3.1.0, < 5.0)
Expand Down Expand Up @@ -757,8 +727,6 @@ DEPENDENCIES
createsend
database_cleaner
dotenv-rails
elasticsearch-model
elasticsearch-rails
ember-rails!
fabrication-rails
faraday (~> 0.8.1)
Expand Down Expand Up @@ -838,7 +806,6 @@ DEPENDENCIES
spring-commands-rspec
squeel (= 1.0.1)
stripe!
stripe-ruby-mock!
strong_parameters
syntax
timecop
Expand Down
5 changes: 5 additions & 0 deletions app/jobs/refresh_user_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ def perform(user_id, full=false)

user = User.find(user_id)

if user.github_id
user.destroy_github_cache
end

return if !full && user.last_refresh_at > 3.days.ago

begin
Expand All @@ -17,6 +21,7 @@ def perform(user_id, full=false)
user.calculate_score!
ensure
user.touch(:last_refresh_at)
user.destroy_github_cache
end
end
end
10 changes: 0 additions & 10 deletions app/jobs/team_migrator_batch_job.rb

This file was deleted.

169 changes: 0 additions & 169 deletions app/jobs/team_migrator_job.rb

This file was deleted.

24 changes: 0 additions & 24 deletions app/models/concerns/team_migration.rb

This file was deleted.

8 changes: 0 additions & 8 deletions app/models/concerns/team_search.rb

This file was deleted.

7 changes: 2 additions & 5 deletions app/models/followed_team.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# TODO, rename to Teams::Follower
class FollowedTeam < ActiveRecord::Base
belongs_to :team, class_name: 'PgTeam'
belongs_to :user
end

# == Schema Information
# Schema version: 20140728214411
#
# Table name: followed_teams
#
# id :integer not null, primary key
# user_id :integer
# team_document_id :string(255)
# created_at :datetime default(2012-03-12 21:01:09 UTC)
# team_id :integer
# created_at :datetime default(2014-02-20 22:39:11 UTC)
#
Loading