fixing hound errors

This commit is contained in:
Miha Mencin 2019-03-04 18:36:32 +01:00
parent fa7bba9de7
commit 6deaff6382
3 changed files with 6 additions and 6 deletions

View file

@ -58,11 +58,11 @@ class TemplatesService
def schedule_creation_for_user(user)
user.teams.each do |team|
unless team.projects.where(template: true).any?
TemplatesService.new.delay(
queue: :templates
).update_team(team)
end
next if team.projects.where(template: true).any?
TemplatesService.new.delay(
queue: :templates
).update_team(team)
end
end
end

View file

@ -42,7 +42,6 @@ module FirstTimeDataGenerator
demo: true
)
# check if samples repo already exist, then create custom repository samples
repository = Repository.where(team: team).where(name: REPO_SAMPLES_NAME)
repository =

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
class AddDemoFlagToProject < ActiveRecord::Migration[5.1]
def change
add_column :projects, :demo, :boolean, null: false, default: false