Skip to content

Instantly share code, notes, and snippets.

@joshuaflanagan
Created May 7, 2010 04:03
Show Gist options
  • Save joshuaflanagan/393037 to your computer and use it in GitHub Desktop.
Save joshuaflanagan/393037 to your computer and use it in GitHub Desktop.
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