Sha256: ff8f4d3fc6da277b68c36892d2d7e66f08ca64baa1fcadecb1fd1154083db998
Contents?: true
Size: 371 Bytes
Versions: 267
Compression:
Stored size: 371 Bytes
Contents
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" require 'active_record' class Person < ActiveRecord::Base establish_connection :adapter => 'sqlite3', :database => 'foobar.db' connection.create_table table_name, :force => true do |t| t.string :name end end bob = Person.create!(:name => 'bob') puts Person.all.inspect bob.destroy puts Person.all.inspect
Version data entries
267 entries across 236 versions & 16 rubygems