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.



28
29
30
31
# File 'lib/active_scaffold/tableless.rb', line 28

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