Sha256: 7725e4a123d18e169e523481932a689040205bf07f61a12ba4d90f414c28c056
Contents?: true
Size: 1.45 KB
Versions: 12
Compression:
Stored size: 1.45 KB
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'logger' require 'active_record' #ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') ActiveRecord::Base.establish_connection(:adapter => 'mysql2', :database => 'rgviz_rails', :username => 'root', :password => '') #ActiveRecord::Base.establish_connection(:adapter => 'postgresql', :database => 'rgviz_rails', :username => 'postgres', :password => '###', :host => '/var/run/postgresql/') ActiveRecord::Schema.define do create_table "cities", :force => true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" t.integer "country_id" end create_table "countries", :force => true do |t| t.string "name" t.datetime "created_at" t.datetime "updated_at" end create_table "people", :force => true do |t| t.string "name" t.integer "age" t.date "birthday" t.datetime "created_at" t.datetime "updated_at" t.integer "city_id" end end require File.dirname(__FILE__) + '/models/person' require File.dirname(__FILE__) + '/models/city' require File.dirname(__FILE__) + '/models/country' require File.dirname(__FILE__) + '/blueprints' require File.dirname(__FILE__) + '/../../rgviz/lib/rgviz' #require 'rgviz' require 'rgviz_rails/executor' RAILS_ENV = 'test' # Add this directory so the ActiveSupport autoloading works #ActiveSupport::Dependencies.load_paths << File.dirname(__FILE__)
Version data entries
12 entries across 12 versions & 1 rubygems