mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
22 lines
427 B
Ruby
22 lines
427 B
Ruby
|
# 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
|