Module: ArJdbc::Firebird::Column

Included in:
ActiveRecord::ConnectionAdapters::FirebirdColumn
Defined in:
lib/arjdbc/firebird/adapter.rb

Overview

Instance Method Summary collapse

Instance Method Details

#default_value(value) ⇒ Object



35
36
37
38
39
40
# File 'lib/arjdbc/firebird/adapter.rb', line 35

def default_value(value)
  return nil unless value
  if value =~ /^\s*DEFAULT\s+(.*)\s*$/i
    return $1 unless $1.upcase == 'NULL'
  end
end