1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove try! usage in sqlite_database_tasks.

We try to not try! internally.
This commit is contained in:
Kasper Timm Hansen 2016-12-29 20:25:24 +01:00
parent 261e94b8ee
commit cb0b79c1fd

View file

@ -37,13 +37,13 @@ module ActiveRecord
def structure_dump(filename, extra_flags)
dbfile = configuration["database"]
flags = extra_flags.try!(:join, " ")
flags = extra_flags.join(" ") if extra_flags
`sqlite3 #{flags} #{dbfile} .schema > #{filename}`
end
def structure_load(filename, extra_flags)
dbfile = configuration["database"]
flags = extra_flags.try!(:join, " ")
flags = extra_flags.join(" ") if extra_flags
`sqlite3 #{flags} #{dbfile} < "#{filename}"`
end