2014-09-24 07:28:17 +00:00
|
|
|
|
2015-06-27 17:26:24 +00:00
|
|
|
ActiveRecord::Schema.define do
|
|
|
|
create_table :commits_v2 do |table|
|
|
|
|
table.column :commit, :string # ref to object
|
|
|
|
table.column :note, :string
|
|
|
|
table.column :author, :author
|
|
|
|
table.column :date, :date
|
|
|
|
table.column :range_id, :integer
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-09-24 07:28:17 +00:00
|
|
|
module TimeCost
|
2015-06-27 17:26:24 +00:00
|
|
|
class CommitV2 < ActiveRecord::Base
|
|
|
|
belongs_to :ranges_v2
|
|
|
|
end
|
2014-09-24 07:28:17 +00:00
|
|
|
|
2015-06-27 17:26:24 +00:00
|
|
|
class Commit
|
2014-09-24 07:28:17 +00:00
|
|
|
attr_accessor :author, :commit, :date, :note
|
|
|
|
def initialize commit
|
|
|
|
@commit = commit
|
|
|
|
@note = nil
|
|
|
|
@author = nil
|
|
|
|
@date = nil
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|