Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rake -T
- find . -name "*.rake" | xargs grep "whatever"
- desc "Create a db/schema.rb file that can be portably used against any DB supported by AR"
- task :dump => :environment do
- require 'active_record/schema_dumper'
- File.open(ENV['SCHEMA'] || "#{RAILS_ROOT}/db/schema.rb", "w") do |file|
- ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, file)
- end
- end
Add Comment
Please, Sign In to add comment