Class: Reactive::MetaModel::ActiveRecordModel::Column

Inherits:
Column
  • Object
show all
Defined in:
lib/activerecord_meta_model.rb

Instance Method Summary collapse

Constructor Details

#initialize(column) ⇒ Column

Returns a new instance of Column.



45
46
47
# File 'lib/activerecord_meta_model.rb', line 45

def initialize(column)
  @name, @type, @primary = column.name.to_sym, column.type, column.primary
end