Sha256: 41dfc541724cb18f9d0cd8ebd13785dfcace3de246b3649d660160bc9a87a6f4

Contents?: true

Size: 286 Bytes

Versions: 1

Compression:

Stored size: 286 Bytes

Contents

require "active_record"

module JamJar
  class Model < ActiveRecord::Base
    self.abstract_class = true

    def self.name
      "TestModel"
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jamjar-1.2.0 lib/jamjar/model.rb