rails_options 0.1.2 → 0.1.3

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: 76685c314fab5ac50127bd51dda9dcebcd34604ff46de8e52d638e8daefb3c29
4
- data.tar.gz: 4ed78e8e4979cd8219a64a78416bd01b18178de9bbdf84fac2f7becd6e4b4066
3
+ metadata.gz: e44f080c004b1fd3d390fb93f30e9b5bef501ea0e358384844571a3e0f86d0b5
4
+ data.tar.gz: ed7b5e5fa4a101c0439f7d21ce11319bc3cf1dd12c758b4f1f36ffa1fd36fe17
5
5
  SHA512:
6
- metadata.gz: 6d90ef1fce3ff9d33a67f6526269b533cc431b909f80600561498769cfb9b3b2a8845a93e59768e87248723c5c0bbf64cbe3df5f08b4201110ca12f91c8a0cce
7
- data.tar.gz: 840682f245951ed10cabbdfaa6bd66eaa7ee92a6d385c5a1ba020108df0dda9aae265988d77bd77d0437ef637804fff571c3d9d6def837855b3aec0aa849f6ba
6
+ metadata.gz: 0c6bdc55fe153eb2b110c37e070b8bfcf6360497ba2e8d393061e977d80392e1e090a89d13c9709330855a8668fd962bd02195526989d7bb86636e216f344f0c
7
+ data.tar.gz: 22ef25ba836d8b2cb59cd987e0d7bb5b9f2f170d471bc3ebf4ec4dbb0ae400ddd27058449fe45d54bddf66237237cca439c6561c1e44d02f771ba61f0e2863c4
@@ -1,5 +1,7 @@
1
1
  module RailsOptions
2
2
  class Option < ApplicationRecord
3
+ self.table_name = "rails_options"
4
+
3
5
  before_save :generate_slug
4
6
  validates_uniqueness_of :slug
5
7
 
@@ -1,6 +1,6 @@
1
1
  class CreateRailsOptionsOptions < ActiveRecord::Migration[6.1]
2
2
  def change
3
- create_table :rails_options_options do |t|
3
+ create_table :rails_options do |t|
4
4
  t.string :slug
5
5
  t.string :value
6
6
  t.text :content
@@ -1,3 +1,3 @@
1
1
  module RailsOptions
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_options
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship
@@ -37,7 +37,7 @@ files:
37
37
  - app/models/rails_options/application_record.rb
38
38
  - app/models/rails_options/option.rb
39
39
  - config/routes.rb
40
- - db/migrate/20220316133202_create_rails_options_options.rb
40
+ - db/migrate/20220316133202_create_rails_options.rb
41
41
  - lib/generators/rails_options/install/install_generator.rb
42
42
  - lib/rails_options.rb
43
43
  - lib/rails_options/engine.rb