forked from ManageIQ/manageiq-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the db:check_schema task to the public tasks.rake file
This will allow it to be used by users when attempting to correct column ordering issues after migrating https://bugzilla.redhat.com/show_bug.cgi?id=1508537
- Loading branch information
Showing
2 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace :db do | ||
desc 'Check the current schema against the schema.yml file for inconsistencies' | ||
task :check_schema => :environment do | ||
message = ManageIQ::Schema::Checker.check_schema | ||
raise message if message | ||
puts "The local schema is consistent with schema.yml" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters