Sha256: 90bfd329e95239ebc928298ded508bb80b040877acc574263fb013bd4ca10108

Contents?: true

Size: 250 Bytes

Versions: 13

Compression:

Stored size: 250 Bytes

Contents

require File.dirname(__FILE__) + '/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

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
dm-migrations-0.9.2 lib/sql/table.rb
dm-migrations-0.9.10 lib/sql/table.rb
dm-migrations-0.9.11 lib/sql/table.rb
dm-migrations-0.9.3 lib/sql/table.rb
dm-migrations-0.9.6 lib/sql/table.rb
dm-migrations-0.9.5 lib/sql/table.rb
dm-migrations-0.9.4 lib/sql/table.rb
dm-migrations-0.9.9 lib/sql/table.rb
dm-migrations-0.9.7 lib/sql/table.rb
dm-migrations-0.9.8 lib/sql/table.rb
mack-data_mapper-0.8.2 lib/gems/dm-migrations-0.9.7/lib/sql/table.rb
mack-data_mapper-0.8.3 lib/gems/dm-migrations-0.9.9/lib/sql/table.rb
mack-data_mapper-0.8.3.1 lib/gems/dm-migrations-0.9.9/lib/sql/table.rb