Class: ActiveScaffold::Tableless::Column

Inherits:
ActiveRecord::ConnectionAdapters::Column
  • Object
show all
Defined in:
lib/active_scaffold/tableless.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, default, sql_type = nil, null = true) ⇒ Column

Returns a new instance of Column.


47
48
49
50
# File 'lib/active_scaffold/tableless.rb', line 47

def initialize(name, default, sql_type = nil, null = true, **)
   = ActiveRecord::Base.connection.send :fetch_type_metadata, sql_type
  super(name, default, , null)
end