Module: AR::UUID::Schema
- Defined in:
- lib/ar/uuid/schema.rb
Instance Method Summary collapse
- #add_reference(table_name, ref_name, options = {}) ⇒ Object
- #create_table(table_name, options = {}, &block) ⇒ Object
Instance Method Details
#add_reference(table_name, ref_name, options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/ar/uuid/schema.rb', line 11 def add_reference(table_name, ref_name, = {}) [:type] = :uuid unless .key?(:type) super(table_name, ref_name, **) end |
#create_table(table_name, options = {}, &block) ⇒ Object
6 7 8 9 |
# File 'lib/ar/uuid/schema.rb', line 6 def create_table(table_name, = {}, &block) [:id] = :uuid unless .key?(:id) super(table_name, **, &block) end |