Skip to content

Instantly share code, notes, and snippets.

@andrewstucki
Created May 12, 2016 04:39
Show Gist options
  • Save andrewstucki/e1579dfef746c40505010f55e07faa94 to your computer and use it in GitHub Desktop.
Save andrewstucki/e1579dfef746c40505010f55e07faa94 to your computer and use it in GitHub Desktop.
irb(main):001:0> require 'active_record'
=> true
irb(main):002:0> class Test < ActiveRecord::Base
irb(main):003:1> self.abstract_class = true
irb(main):004:1> end
=> true
irb(main):005:0> class SubClass < Test
irb(main):006:1> end
=> nil
irb(main):007:0> SubClass.table_name
=> "sub_classes"
irb(main):008:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment