Created
May 12, 2016 04:39
-
-
Save andrewstucki/e1579dfef746c40505010f55e07faa94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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