Class: SQL::Column

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

Direct Known Subclasses

Postgres::Column, Sqlite::Column

Instance Attribute Summary collapse

Instance Attribute Details

#default_valueObject

Returns the value of attribute default_value.



3
4
5
# File 'lib/dm-migrations/sql/column.rb', line 3

def default_value
  @default_value
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/dm-migrations/sql/column.rb', line 3

def name
  @name
end

#not_nullObject

Returns the value of attribute not_null.



3
4
5
# File 'lib/dm-migrations/sql/column.rb', line 3

def not_null
  @not_null
end

#primary_keyObject

Returns the value of attribute primary_key.



3
4
5
# File 'lib/dm-migrations/sql/column.rb', line 3

def primary_key
  @primary_key
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/dm-migrations/sql/column.rb', line 3

def type
  @type
end

#uniqueObject

Returns the value of attribute unique.



3
4
5
# File 'lib/dm-migrations/sql/column.rb', line 3

def unique
  @unique
end