Skip to content
代码片段 群组 项目
提交 c7dc4003 编辑于 作者: Dmitry Gruzd's avatar Dmitry Gruzd
浏览文件

Fix regenerate-schema for partitioned tables

上级 65b82f8a
No related branches found
No related tags found
无相关合并请求
......@@ -58,6 +58,7 @@ class SchemaRegenerator
setup_db
unhide_migrations
migrate
dump_schema
rollback if @rollback_testing
ensure
unhide_migrations
......@@ -195,6 +196,12 @@ class SchemaRegenerator
run %q(bin/rails db:migrate RAILS_ENV=test)
end
##
# Run rake task to dump schema.
def dump_schema
run %q(bin/rails db:schema:dump RAILS_ENV=test)
end
##
# Run rake task to rollback migrations.
def rollback
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册