Module: Birdspotting::SchemaStatements

Defined in:
lib/birdspotting/schema_statements.rb

Instance Method Summary collapse

Instance Method Details

#add_column(table_name, column_name, type, options = {}) ⇒ Object



3
4
5
6
7
8
# File 'lib/birdspotting/schema_statements.rb', line 3

def add_column(table_name, column_name, type, options = {})
  add_column_position_check(options)
  encoding_check(column_name, type, options)

  super(table_name, column_name, type, **options)
end

#remove_column(table_name, column_name, type = nil, options = {}) ⇒ Object



16
17
18
19
20
# File 'lib/birdspotting/schema_statements.rb', line 16

def remove_column(table_name, column_name, type = nil, options = {})
  remove_column_check(column_name, table_name, options)

  super(table_name, column_name, type, **options)
end

#rename_column(*args, **kwargs) ⇒ Object



10
11
12
13
14
# File 'lib/birdspotting/schema_statements.rb', line 10

def rename_column(*args, **kwargs)
  rename_column_check(kwargs)

  super(*args)
end