mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Remove skip_on_import from repository_cell [SCI-1939]
This commit is contained in:
parent
a64012237e
commit
819febb05b
1 changed files with 1 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
|||
class RepositoryCell < ActiveRecord::Base
|
||||
attr_accessor :skip_on_import
|
||||
|
||||
belongs_to :repository_row
|
||||
belongs_to :repository_column
|
||||
belongs_to :value, polymorphic: true, dependent: :destroy
|
||||
|
@ -8,8 +6,7 @@ class RepositoryCell < ActiveRecord::Base
|
|||
validates :repository_column, presence: true
|
||||
validate :repository_column_data_type
|
||||
validates :repository_row,
|
||||
uniqueness: { scope: :repository_column },
|
||||
unless: :skip_on_import
|
||||
uniqueness: { scope: :repository_column }
|
||||
|
||||
private
|
||||
|
||||
|
|
Loading…
Reference in a new issue