Sha256: bff2221a9f57675530fa574f662dbb45ce7dd441ffb46abd0f5e2b8d8c1fe4fd
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). file = File.join(Rails.root, "features", "config.yml") if File.exists?(file) config = YAML.load_file(file) if ENV['SERVER'] unless config['servers'].has_key?(ENV['SERVER']) throw Exception.new("Server #{ENV['SERVER']} does not exists in your configuration file.") end server = config['servers'][ENV['SERVER']] else server = config['servers'][config['servers'].keys.first] end server['version'] = '0.9' unless server.has_key?('version') server['name'] = URI.parse(server['url']).host server.delete('mobile_salt') if server.has_key?('mobile_salt') BigbluebuttonServer.create!(server) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-2.0.0 | spec/rails_app/db/seeds.rb |