From de3ac30c2458ac7917a187447842197e8747ea51 Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Sun, 14 Jan 2018 22:42:53 -0200 Subject: [PATCH] fix: spec tables creator path --- spec/support/migrate.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/support/migrate.rb b/spec/support/migrate.rb index 2a901fd..9f904fc 100644 --- a/spec/support/migrate.rb +++ b/spec/support/migrate.rb @@ -2,6 +2,8 @@ require File.expand_path('../../lib/generators/rating/templates/db/migrate/create_rating_tables.rb', __dir__) +Dir[File.expand_path('db/migrate/*.rb', __dir__)].each { |file| require file } + CreateArticlesTable.new.change CreateAuthorsTable.new.change CreateCategoriesTable.new.change