# 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
