Created
May 7, 2010 04:03
-
-
Save joshuaflanagan/393037 to your computer and use it in GitHub Desktop.
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
desc "Generate the database schema" | |
task :db do | |
$:.unshift('.\src\MyApp\bin') # Add the website bin folder to the load_path so that assembly dependencies are found | |
require 'MyApp' # MyApp is my ASP.NET web app assembly DLL | |
MyApp::Database.BuildSchema # Database.BuildSchema is a static method | |
puts 'Database rebuilt' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment