Rakefile in ros-apartment-2.3.0 vs Rakefile in ros-apartment-2.4.0
- old
+ new
@@ -83,10 +83,11 @@
task :build_db do
params = []
params << "-h #{my_config['host']}" if my_config['host']
params << "-u #{my_config['username']}" if my_config['username']
params << "-p#{my_config['password']}" if my_config['password']
+ params << "--port #{my_config['port']}" if my_config['port']
%x{ mysqladmin #{params.join(' ')} create #{my_config['database']} } rescue "test db already exists"
ActiveRecord::Base.establish_connection my_config
migrate
end
@@ -95,9 +96,10 @@
puts "dropping database #{my_config['database']}"
params = []
params << "-h #{my_config['host']}" if my_config['host']
params << "-u #{my_config['username']}" if my_config['username']
params << "-p#{my_config['password']}" if my_config['password']
+ params << "--port #{my_config['port']}" if my_config['port']
%x{ mysqladmin #{params.join(' ')} drop #{my_config['database']} --force}
end
end