Class: RoCommands::Check

Inherits:
Base
  • Object
show all
Defined in:
lib/ro_commands/check.rb

Instance Method Summary collapse

Instance Method Details

#schema(*args) ⇒ Object



5
6
7
# File 'lib/ro_commands/check.rb', line 5

def schema(*args)
  bash "cat db/schema.rb"
end

#table(*args) ⇒ Object



11
12
13
14
# File 'lib/ro_commands/check.rb', line 11

def table(*args)
  table_name = args.first.camelize
  Out.out(Object.const_get(:"#{table_name}").all)
end