Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (16 sloc) 390 Bytes
#!/usr/bin/env ruby
begin
require File.join(Dir.pwd, "config", "boot")
rescue LoadError => e
puts "\nUh-oh! You must be in the root directory of a Rails project.\n"
raise
end
require 'active_record'
require File.join(Dir.pwd, "config", "environment")
$:<< File.join(File.dirname(__FILE__), "..", "lib")
require "consistency_fail"
if ConsistencyFail.run
exit 0
else
exit 1
end