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:
parent
261e94b8ee
commit
cb0b79c1fd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue