git-timecost/lib/timecost/commit.rb

28 lines
535 B
Ruby
Raw Normal View History

2014-09-24 07:28:17 +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
class CommitV2 < ActiveRecord::Base
belongs_to :ranges_v2
end
2014-09-24 07:28:17 +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