Sha256: 976bad58ffff2f9fe6bc9079bf519bb493615ce673162cb76563c4453fbf54ed
Contents?: true
Size: 282 Bytes
Versions: 1
Compression:
Stored size: 282 Bytes
Contents
require "active_record" module JamJar class Model < ActiveRecord::Base self.abstract_class = true establish_connection adapter: :sqlite3, database: ":memory:" def self.column(name, type) self.connection.add_column(self.table_name, name, type) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jamjar-1.0.0 | lib/jamjar/model.rb |