rails-domino 0.2.9.1 → 0.2.9.2

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: f051893c17c7d60139d794dbd423e385d39253a917c606ef58d740ad2dceb02d
4
- data.tar.gz: '0319ae33ac061847b3e40e70153e27738983f9c332c125e5584f29671655bfc5'
3
+ metadata.gz: fed54b60a2214a055f3474738ac23e5401b54a9ee06cb52152f2108c3f67f123
4
+ data.tar.gz: 4ee0f470feb5f30d8a06a61473511f1423e0dd29dc193ab47ee5bb843587c97a
5
5
  SHA512:
6
- metadata.gz: e93880ccaa2572aade5ecea504e0dacc6c0d50185a2dfb01299995e123581fbd57c9950a8fbb8b0f1dd50eb60e2c64a2e9511add1af3cbf21c610384df063e69
7
- data.tar.gz: 328eb38658e11ba8626b5d4ddaffe71f7804d2fe4b79b0cb530c07554a89fabce909624d1e1464ab0d76bada8961283264277ba3f7472e10ba8cc83a08820ff0
6
+ metadata.gz: 27750f3692d4f2fd445b9ecd24af55a3d869d3efee94bbc878c8af729fcd7615b368443f2795e239a0c58a865784cb7d25558f286d9164f316c63eab834ac06a
7
+ data.tar.gz: f0100b431053467725d7b72e32631fb4dd3212d76b5bc6bdd26e01477769f744141a5cbf8fde5ae393ed0704bda47827d77e68b64246b331da541acec8154cf9
@@ -10,7 +10,8 @@ module Domino
10
10
  # @param generate_model [Boolean] whether to run model generation
11
11
  def self.scaffold(tables: nil, namespace: nil, generate_model: true)
12
12
  connection = ActiveRecord::Base.connection
13
- tables ||= connection.tables.reject { |t| t == "schema_migrations" }
13
+ tables ||= connection.tables.reject { |t| %w[schema_migrations ar_internal_metadata].include?(t) }
14
+ # tables ||= connection.tables.reject { |t| t == "schema_migrations" }
14
15
 
15
16
  tables.each do |table|
16
17
  klass = table.singularize.camelize
@@ -41,7 +42,9 @@ module Domino
41
42
  end
42
43
 
43
44
  def generate_model_file
44
- system("rails generate model #{@model_name} #{column_args.join(" ")}")
45
+ cmd = ["rails", "generate", "model", @model_name] + column_args
46
+ system(*cmd)
47
+ # system("rails generate model #{@model_name} #{column_args.join(" ")}")
45
48
  end
46
49
 
47
50
  def column_args
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Domino
4
- VERSION = "0.2.9.1"
4
+ VERSION = "0.2.9.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-domino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9.1
4
+ version: 0.2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kiebor81