Undoes the field and sequence created by the sequence method
# File vendor/plugins/ubiquo_core/lib/ubiquo/adapters/sequence_definition.rb, line 12
12: def remove_sequence(table_name, field_name)
13: remove field_name
14: ActiveRecord::Base.connection.drop_sequence("%s_$_%s" % [table_name, field_name])
15: end
Creates an integer and an associated sequence field
# File vendor/plugins/ubiquo_core/lib/ubiquo/adapters/sequence_definition.rb, line 6 6: def sequence(table_name, field_name) 7: integer field_name 8: ActiveRecord::Base.connection.create_sequence("%s_$_%s" % [table_name, field_name]) 9: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.