Sha256: 5b37e53a7233861c0f55fdd6e01dc5d48540589e0d5f3e56469c604f678f851e
Contents?: true
Size: 464 Bytes
Versions: 4
Compression:
Stored size: 464 Bytes
Contents
module ExtendModelAt class TableManager def initialize @config = {} end [:any, :binary, :boolean, :date, :datetime, :decimal, :float, :integer, :string, :text, :time, :timestamp].each do |function| define_method(function.to_s) do |column_name, options={}| @config[column_name.to_sym] = options.merge!({:type => function}) nil end end protected def config return @config end end end
Version data entries
4 entries across 4 versions & 1 rubygems