This can be accomplished by placing the following code in the configuration file (e.g. production.rb, development.rb, test.rb, application.rb, etc.)
require 'bcrypt'
BCrypt::Engine::DEFAULT_COST = 12
, , , . .
$2a$12$k50jCqk8Bijj.wYxg69QBOg.t4VNMj/VmSkPCfeWWoOW
12 , $