Skip to content

Commit

Permalink
chore(scaffolding): correct table name [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Apr 18, 2021
1 parent 4aff7ac commit d8061e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scaffolding/run.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env ruby

require 'pact_broker/string_refinements'
require 'pact_broker/project_root'
require 'date'
Expand Down Expand Up @@ -117,7 +119,7 @@ def repository_instance_name
# Table

def table_name
model_class_name.snakecase
model_class_name.snakecase + "s"
end

def model_class_name_snakecase
Expand Down

0 comments on commit d8061e3

Please sign in to comment.