Sha256: f771fea4916b898f052a074a4cac4643da89215917fbf37db9c5c49e8cafd8ed

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

module Ryakuzu
  class ColumnDefaults < Schema
    attr_accessor :table, :column, :default, :type, :null, :index

    attribute :table,   String
    attribute :column,  String
    attribute :default, String
    attribute :type,    String
    attribute :null,    String
    attribute :index,   Boolean

    def initialize(hash, null)
      hash.each { |key, val| send("#{key}=", val) }
      self.default = '""' if default == ""
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ryakuzu-0.3.0 app/models/ryakuzu/column_defaults.rb
ryakuzu-0.2.6 app/models/ryakuzu/column_defaults.rb