Module: Birdspotting::SchemaStatements
- Defined in:
- lib/birdspotting/schema_statements.rb
Instance Method Summary collapse
- #add_column(table_name, column_name, type, options = {}) ⇒ Object
- #remove_column(table_name, column_name, type = nil, options = {}) ⇒ Object
- #rename_column(*args, **kwargs) ⇒ Object
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, = {}) add_column_position_check() encoding_check(column_name, type, ) super(table_name, column_name, type, **) 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, = {}) remove_column_check(column_name, table_name, ) super(table_name, column_name, type, **) 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 |