active_record_store 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff5fb7e86ff171a71b09ada3167228833ee6aca9592b14f31d760f974708c6ce
4
- data.tar.gz: fec34f0d35ca9f632b9045d2b2ee4ee444ae51e40569fe4726c334da8fbd02d9
3
+ metadata.gz: 4dd888da34863b25fd46e21143960495a5c2cea47cf5fc77e686b3932e40cc54
4
+ data.tar.gz: 3caeb00547169313a36131a8352f32beac83b5b219a44011d2fcedfe9d1eef85
5
5
  SHA512:
6
- metadata.gz: 18f8183043f57c32479f45f90a552b9226a24df9a0fb6a678910272e0b3b5d7036dfb2ba2b51b9b1e82f3a0f8d55eb04ecd18c914d80dd07cb40563a7a1c6c2c
7
- data.tar.gz: 3551e4e960eb61be04dcc078c31105d97003531c5e53fd5aaf68693ba08ec6c2e90573fce082be209ec8a808372843897dbd47d1bddd8cf2099835190fcbb320
6
+ metadata.gz: 2b51e93f273d1f36805020549099f8ca87b513db5215dec645977459680ee9e6fde65d533b54c391301066a6f673598e648b51e7cb6fecbbbe9f988f86e4aafc
7
+ data.tar.gz: d18409eea4ff7a80548af3882daca1d6fca356a66d2f53c4bf9792c2f3d374c4c6afacda90d165a7343ca0eadecb31ad53650d24d709e24fe9c8aca564e00e11
@@ -1,4 +1,4 @@
1
- class ArStore < ActiveRecord::Base
1
+ class ArStore < ApplicationRecord
2
2
  VALID_OPTION_KEYS = [:expires_in]
3
3
 
4
4
  def self.expiration=(seconds)
@@ -1,13 +1,13 @@
1
- class CreateArStores < ActiveRecord::Migration
1
+ class CreateArStores < ActiveRecord::Migration[6.0]
2
2
 
3
3
  def change
4
- create_table :ar_stores do |t|
4
+ create_table :ar_stores, id: :uuid do |t|
5
5
  t.binary :key, null: false
6
6
  t.binary :value, null: false
7
7
 
8
8
  t.index :key
9
9
 
10
- t.datetime :updated_at, null: false
10
+ t.timestamps
11
11
  end
12
12
  end
13
13
  end
@@ -1,4 +1,4 @@
1
- class AddIndices < ActiveRecord::Migration
1
+ class AddIndices < ActiveRecord::Migration[6.0]
2
2
 
3
3
  def change
4
4
  add_index :ar_stores, :updated_at
@@ -1,4 +1,4 @@
1
- class AddExpirationFlag < ActiveRecord::Migration
1
+ class AddExpirationFlag < ActiveRecord::Migration[6.0]
2
2
 
3
3
  def change
4
4
  add_column :ar_stores, :expires, :boolean, :default => false
@@ -1,4 +1,4 @@
1
- class ChangeExpires < ActiveRecord::Migration
1
+ class ChangeExpires < ActiveRecord::Migration[6.0]
2
2
 
3
3
  def change
4
4
  remove_column :ar_stores, :expires
@@ -1,4 +1,4 @@
1
1
  module ActiveRecordStore
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Sharpe
@@ -27,7 +27,6 @@ files:
27
27
  - active_record_store.gemspec
28
28
  - app/models/ar_store.rb
29
29
  - db/migrate/20130805003710_create_ar_stores.rb
30
- - db/migrate/20130805003711_add_updated_at_index.rb
31
30
  - db/migrate/20130806003711_add_indices.rb
32
31
  - db/migrate/20130901003711_add_expiration_flag.rb
33
32
  - db/migrate/20130906003711_change_expires.rb
@@ -1,7 +0,0 @@
1
- class AddUpdatedAtIndex < ActiveRecord::Migration
2
-
3
- def change
4
- add_index :ar_stores, :updated_at
5
- end
6
- end
7
-