Sha256: b42af9525529a1e4f1d3eb413a6f89d12ea2322fbae028aff66f2931cb2e185a
Contents?: true
Size: 614 Bytes
Versions: 57
Compression:
Stored size: 614 Bytes
Contents
begin require 'active_record' rescue LoadError end if defined?(::ActiveRecord::Base) ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" ActiveRecord::Schema.define do self.verbose = false create_table :organizations, :force => true do |t| t.string :name t.timestamps :null => false end create_table :users, :force => true do |t| t.integer :age t.string :email t.string :first_name t.timestamps :null => false end end class Organization < ::ActiveRecord::Base end class User < ::ActiveRecord::Base end end
Version data entries
57 entries across 57 versions & 1 rubygems