Class: JamJar::Model

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/jamjar/model.rb

Class Method Summary collapse

Class Method Details

.column(name, type, options = {}) ⇒ Object



11
12
13
# File 'lib/jamjar/model.rb', line 11

def self.column(name, type, options = {})
  self.connection.add_column(self.table_name, name, type, options)
end

.nameObject



7
8
9
# File 'lib/jamjar/model.rb', line 7

def self.name
  "TestModel"
end