Dirty logging to DB
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
module RakeControl
|
||||
class Run < ActiveRecord::Base
|
||||
attr_accessible :name, :success, :execution_time
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
module RakeControl
|
||||
module Storage
|
||||
module ActiveRecord
|
||||
class Run < ::ActiveRecord::Base
|
||||
self.table_name = 'rake_control_runs'
|
||||
attr_accessible :name, :success, :execution_time
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,9 +0,0 @@
|
||||
module RakeControl
|
||||
class Run
|
||||
include MongoMapper::Document
|
||||
|
||||
key :name, String
|
||||
key :success, Boolean
|
||||
key :execution_time, Float
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
module RakeControl
|
||||
module Storage
|
||||
module MongoMapper
|
||||
class Run
|
||||
include ::MongoMapper::Document
|
||||
|
||||
key :name, String
|
||||
key :success, Boolean
|
||||
key :execution_time, Float
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,9 +0,0 @@
|
||||
module RakeControl
|
||||
class Run
|
||||
include Mongoid::Document
|
||||
|
||||
field :name, type: String
|
||||
field :success, type: Boolean
|
||||
field :execution_time, type: Float
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,13 @@
|
||||
module RakeControl
|
||||
module Storage
|
||||
module Mongoid
|
||||
class Run
|
||||
include ::Mongoid::Document
|
||||
|
||||
field :name, type: String
|
||||
field :success, type: Boolean
|
||||
field :execution_time, type: Float
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user