activekit 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d79cd1518b90bb64257a77318f59cfa3f2bfa9bb58a45ead89ddfa5bcb08b001
4
- data.tar.gz: c8891e2351e0940b765a0a5c296403f2885fac4b64db00b822d32707f84b156c
3
+ metadata.gz: f22601f05c64e21478512fd85ac1ebf74afc91c517349793fc79bfad4f343952
4
+ data.tar.gz: 3ed1dcb02993f21dd6cb582b2574652eb34a5107e4d70c456ba047391294a908
5
5
  SHA512:
6
- metadata.gz: 83975dd7d4e472532c0b1afa3afcf2aebda640093f6cedb325c9b69adc50f8216e8cc59edaea6f2d923320be8e7409e026c3d36ba48f29469acec41a97bf609b
7
- data.tar.gz: 6bb3596f95f6893e9ce5a342b96ac22ed2d72cf36866900fa75fedb8a6a397020c0d3295160f1ddca8bee1a36921adf3e055d0e65b1b7d6d60caa6dc7975401b
6
+ metadata.gz: 78245200325e89c2a78a83123c2874bb9163d2202fdf9719b62f60d9986274a6ddb9e1700801cb2d7be896aaff90d782f79e43c9e6681c8720192e14e4738acd
7
+ data.tar.gz: d770761da113c6f859e04250a980f3c4416ff142702ab2f97b88ca32bc063cb4f32e9967e0fa2c2b4deac10e5d4d63c392e00c5462f31a586aefa355b3f87918
@@ -0,0 +1,7 @@
1
+ module ActiveKit
2
+ class Attribute < ApplicationRecord
3
+ belongs_to :record, polymorphic: true
4
+
5
+ validates :value, presence: true, length: { maximum: 1073741823, allow_blank: true }
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ class CreateActiveKitAttributes < ActiveRecord::Migration[6.1]
2
+ def change
3
+ create_table :active_kit_attributes do |t|
4
+ t.references :record, polymorphic: true, index: true
5
+ t.text :value, size: :long
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveKit
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activekit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - plainsource
@@ -47,8 +47,10 @@ files:
47
47
  - app/jobs/active_kit/application_job.rb
48
48
  - app/mailers/active_kit/application_mailer.rb
49
49
  - app/models/active_kit/application_record.rb
50
+ - app/models/active_kit/attribute.rb
50
51
  - app/views/layouts/active_kit/application.html.erb
51
52
  - config/routes.rb
53
+ - db/migrate/20231016050208_create_active_kit_attributes.rb
52
54
  - lib/active_kit.rb
53
55
  - lib/active_kit/engine.rb
54
56
  - lib/active_kit/sequence/sequenceable.rb