Skip to content

Commit 58ff4ac

Browse files
authored
Fix default table name being incorrect in migration generator (#274)
1 parent bf6eb58 commit 58ff4ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/generators/sorcery/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def model_class_name
1313
end
1414

1515
def tableized_model_class
16-
options[:model] ? options[:model].gsub(/::/, '').tableize : 'User'
16+
options[:model] ? options[:model].gsub(/::/, '').tableize : 'users'
1717
end
1818

1919
def model_path

0 commit comments

Comments
 (0)