Class: TrialDeleter

Inherits:
Object
  • Object
show all
Defined in:
app/models/trial_deleter.rb

Overview

This class is clearer of Trial.

Class Method Summary (collapse)

Class Method Details

+ (Object) execute(trial_id)



3
4
5
6
7
# File 'app/models/trial_deleter.rb', line 3

def self.execute(trial_id)
  TrialMoveTurn.destroy_all(["trial_id = ?", trial_id])
  TrialFortressCell.destroy_all(["trial_id = ?", trial_id])
  TrialSquad.destroy_all(["trial_id = ?", trial_id])
end