Module: Ratbug::ActiveRecordSchemaMonkeyExt
- Included in:
- ActiveRecordSchemaMonkey
- Defined in:
- lib/ratbug/active_record_schema_monkey.rb
Instance Method Summary collapse
Instance Method Details
#add_foreign_key ⇒ Object
15 16 17 |
# File 'lib/ratbug/active_record_schema_monkey.rb', line 15 def add_foreign_key(*) # do nothing end |
#create_table(table_name, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/ratbug/active_record_schema_monkey.rb', line 5 def create_table(table_name, **, &block) table = Table.new(table_name) table.instance_exec(table, &block) @tables[table_name] = table end |
#enable_extension ⇒ Object
11 12 13 |
# File 'lib/ratbug/active_record_schema_monkey.rb', line 11 def enable_extension(*) # do nothing end |