Sha256: c1c4d2f28cb2225de08401b50aae3efd9e8979087b3ccaa3de71fac377083a30

Contents?: true

Size: 309 Bytes

Versions: 7

Compression:

Stored size: 309 Bytes

Contents

require "orm_adapter/adapters/active_record"

module Replication
  module ActiveRecord
    class Strand < ::ActiveRecord::Base
      extend Replication::StrandMethods
      serialize :pairs
      belongs_to :origin, polymorphic: true

      validates :name, uniqueness: true, presence: true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
replication-0.3.2 lib/replication/active_record/strand.rb
replication-0.3.1 lib/replication/active_record/strand.rb
replication-0.3.0 lib/replication/active_record/strand.rb
replication-0.2.0 lib/replication/active_record/strand.rb
replication-0.1.2 lib/replication/active_record/strand.rb
replication-0.1.1 lib/replication/active_record/strand.rb
replication-0.1.0 lib/replication/active_record/strand.rb