Sha256: 8e25ccab51a3342074ae12f6faf8cf8791484b2283f5dc885a1aa49fac5c1d1f

Contents?: true

Size: 535 Bytes

Versions: 30

Compression:

Stored size: 535 Bytes

Contents

ActiveRecord::Base.connection.tables.each do |t|
  ActiveRecord::Base.connection.drop_table t
end

gems = %w{ documents events linkser presence }

gems.each do |g|
  require "social_stream/migrations/#{ g }"
end

gems.unshift("base")

gems.each do |g|
  "SocialStream::Migrations::#{ g.camelize }".constantize.new.up
end

# In Rails 3.2.0, we need to reload the database schema
#
# Some models are loaded before the database is created,
# reporting their table does not exist in specs
ActiveRecord::Base.connection.schema_cache.clear!

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
social_stream-0.28.4 spec/support/db.rb
social_stream-0.28.1 spec/support/db.rb
social_stream-0.28.0 spec/support/db.rb
social_stream-0.27.3 spec/support/db.rb
social_stream-0.27.2 spec/support/db.rb
social_stream-0.27.1 spec/support/db.rb
social_stream-0.27.0 spec/support/db.rb
social_stream-0.26.2 spec/support/db.rb
social_stream-0.26.1 spec/support/db.rb
social_stream-0.26.0 spec/support/db.rb
social_stream-0.25.2 spec/support/db.rb
social_stream-0.25.1 spec/support/db.rb
social_stream-0.25.0 spec/support/db.rb
social_stream-0.24.1 spec/support/db.rb
social_stream-0.24.0 spec/support/db.rb
social_stream-0.23.4 spec/support/db.rb
social_stream-0.23.3 spec/support/db.rb
social_stream-0.23.2 spec/support/db.rb
social_stream-0.23.1 spec/support/db.rb
social_stream-0.22.1 spec/support/db.rb