Skip to content

Instantly share code, notes, and snippets.

View 0x00b1's full-sized avatar
🕶️

Allen Goodman 0x00b1

🕶️
View GitHub Profile
class Tableless < ActiveRecord::Base
def self.column(name, sql_type = nil, default = nil, null = true)
columns << ActiveRecord::ConnectionAdapters::Column.new( name.to_s, default, sql_type.to_s, null )
end
def self.columns()
@columns ||= [];
end