HTTPS clone URL
Subversion checkout URL
Here lies unsorted delete part of my old readme. I promisse - I'll do better soon.
Delete all rows from table with attribute equals something:
# regular variant: TableName.delete_all(['attribute = ?', value]) # with Spik: delete all table_name with attribute_name 'something'
for example with your table posts (and model Post) and table has attribute title:
# regular variant: Post.delete_all(['title = ?', 'asd']) # with Spik: delete all posts with title 'asd'
After this all posts rows with title 'asd' will be deleted
Delete row from table with specific id:
# regular variant: TableName.delete(id) # with Spik: delete [first] table_name_row with id (numeric)
for example with your table posts (and model Post):
# regular variant: Post.delete(5) # with Spik: delete post with id 5
After this post row with id 5 will be deleted