Class: SQL::Column

Inherits:
Object show all
Defined in:
lib/gems/dm-migrations-0.9.9/lib/sql/column.rb

Direct Known Subclasses

Postgresql::Column, Sqlite3::Column

Instance Attribute Summary collapse

Instance Attribute Details

#default_valueObject

Returns the value of attribute default_value.



5
6
7
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/column.rb', line 5

def default_value
  @default_value
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/column.rb', line 5

def name
  @name
end

#not_nullObject

Returns the value of attribute not_null.



5
6
7
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/column.rb', line 5

def not_null
  @not_null
end

#primary_keyObject

Returns the value of attribute primary_key.



5
6
7
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/column.rb', line 5

def primary_key
  @primary_key
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/column.rb', line 5

def type
  @type
end

#uniqueObject

Returns the value of attribute unique.



5
6
7
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/column.rb', line 5

def unique
  @unique
end