Sha256: dff714f68d35f0325b2da105b8e073ed8c4c1dab657f0a5f40f38d3269ec0f4f

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

ActiveRecord::Schema.define(version: 0) do
  create_table 'tags', force: true do |t|
    t.string 'name'
  end
  create_table 'tag_audits', id: false, force: true do |t|
    t.string 'tag_name'
  end
  create_table 'labels', id: false, force: true do |t|
    t.string 'name'
  end
end

class Tag < ActiveRecord::Base
  after_save do
    TagAudit.create(tag_name: name)
    Label.create(name: name)
  end
end

class TagAudit < ActiveRecord::Base
end

class Label < ActiveRecord::Base
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
with_advisory_lock-5.1.0 test/test_models.rb
with_advisory_lock-5.0.0 test/test_models.rb