Class: Onoma::Migration::Actions::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/onoma/migration/actions/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.action_nameObject



5
6
7
# File 'lib/onoma/migration/actions/base.rb', line 5

def self.action_name
  name.split('::').last.underscore
end

Instance Method Details

#action_nameObject



9
10
11
# File 'lib/onoma/migration/actions/base.rb', line 9

def action_name
  self.class.action_name
end