require 'dm-migrations/sql/column'

module SQL
  class Table
    attr_accessor :name, :columns

    def to_s
      name
    end

    def column(column_name)
      @columns.select { |c| c.name == column_name.to_s }.first
    end
  end
end
