scinote-web/app/services/repository_columns/create_date_column_service.rb

22 lines
427 B
Ruby
Raw Normal View History

2019-10-09 20:09:27 +08:00
# frozen_string_literal: true
module RepositoryColumns
class CreateDateColumnService < CreateColumnService
def initialize(user, repository_id, name)
super(user, repository_id, name)
end
def call
return self unless valid?
ActiveRecord::Base.transaction do
create_base_column(Extends::REPOSITORY_DATA_TYPES[:RepositoryDateValue])
# TODO
end
self
end
end
end