Sha256: 0d3c42e381a71a13a6605fcdb6e5a2c0312ec4df3346af3dd0f8b829ca7b01d0

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
with_advisory_lock-4.6.0 test/test_models.rb
with_advisory_lock-4.0.0 test/test_models.rb
with_advisory_lock-3.2.0 test/test_models.rb
with_advisory_lock-3.1.1 test/test_models.rb
with_advisory_lock-3.1.0 test/test_models.rb
with_advisory_lock-3.0.0 test/test_models.rb
with_advisory_lock-2.0.0 test/test_models.rb