Sha256: 74cff221d43ff0f7fa51198c0f3493270adeb891169a9e252a4b204bfea7b2b4
Contents?: true
Size: 552 Bytes
Versions: 31
Compression:
Stored size: 552 Bytes
Contents
require 'active_record' ActiveRecord::Base.logger = Rails.logger 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
Version data entries
31 entries across 31 versions & 2 rubygems