mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:43:16 +08:00
table_exists should be called aggresively while it is false or nil, to avoid bootstrapping issues
don't test 1.9.3 in travis, it blows up randomly due to incorrect implementation of weak refs in 1.9.3
This commit is contained in:
parent
bb135fafb4
commit
34be27f425
|
@ -1,6 +1,5 @@
|
|||
language: ruby
|
||||
rvm:
|
||||
- 1.9.3
|
||||
- 2.0.0
|
||||
before_script:
|
||||
- cp config/database.yml.development-sample config/database.yml
|
||||
|
|
|
@ -58,7 +58,7 @@ class SiteSettings::DbProvider
|
|||
|
||||
# table is not in the db yet, initial migration, etc
|
||||
def table_exists?
|
||||
@table_exists = ActiveRecord::Base.connection.table_exists? @model.table_name if @table_exists == nil
|
||||
@table_exists = ActiveRecord::Base.connection.table_exists? @model.table_name unless @table_exists
|
||||
@table_exists
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user