Module: ActiveRecord::ConnectionAdapters::MySQL::ColumnMethods

Included in:
Table, TableDefinition
Defined in:
lib/active_record/connection_adapters/mysql/schema_definitions.rb

Instance Method Summary collapse

Instance Method Details

#blob(*args, **options) ⇒ Object


7
8
9
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 7

def blob(*args, **options)
  args.each { |name| column(name, :blob, options) }
end

#longblob(*args, **options) ⇒ Object


19
20
21
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 19

def longblob(*args, **options)
  args.each { |name| column(name, :longblob, options) }
end

#longtext(*args, **options) ⇒ Object


31
32
33
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 31

def longtext(*args, **options)
  args.each { |name| column(name, :longtext, options) }
end

#mediumblob(*args, **options) ⇒ Object


15
16
17
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 15

def mediumblob(*args, **options)
  args.each { |name| column(name, :mediumblob, options) }
end

#mediumtext(*args, **options) ⇒ Object


27
28
29
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 27

def mediumtext(*args, **options)
  args.each { |name| column(name, :mediumtext, options) }
end

#tinyblob(*args, **options) ⇒ Object


11
12
13
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 11

def tinyblob(*args, **options)
  args.each { |name| column(name, :tinyblob, options) }
end

#tinytext(*args, **options) ⇒ Object


23
24
25
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 23

def tinytext(*args, **options)
  args.each { |name| column(name, :tinytext, options) }
end

#unsigned_bigint(*args, **options) ⇒ Object


39
40
41
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 39

def unsigned_bigint(*args, **options)
  args.each { |name| column(name, :unsigned_bigint, options) }
end

#unsigned_decimal(*args, **options) ⇒ Object


47
48
49
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 47

def unsigned_decimal(*args, **options)
  args.each { |name| column(name, :unsigned_decimal, options) }
end

#unsigned_float(*args, **options) ⇒ Object


43
44
45
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 43

def unsigned_float(*args, **options)
  args.each { |name| column(name, :unsigned_float, options) }
end

#unsigned_integer(*args, **options) ⇒ Object


35
36
37
# File 'lib/active_record/connection_adapters/mysql/schema_definitions.rb', line 35

def unsigned_integer(*args, **options)
  args.each { |name| column(name, :unsigned_integer, options) }
end