Introduced acts_as_paranoid. Avoid deleting of suppliers and articles. (for consistency of order-results)
This commit is contained in:
parent
b820577382
commit
fc45345e0d
30 changed files with 1238 additions and 151 deletions
19
vendor/plugins/acts_as_paranoid/test/fixtures/categories.yml
vendored
Normal file
19
vendor/plugins/acts_as_paranoid/test/fixtures/categories.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
category_1:
|
||||
id: 1
|
||||
widget_id: 1
|
||||
title: 'category 1'
|
||||
category_2:
|
||||
id: 2
|
||||
widget_id: 1
|
||||
title: 'category 2'
|
||||
deleted_at: '2005-01-01 00:00:00'
|
||||
category_3:
|
||||
id: 3
|
||||
widget_id: 2
|
||||
title: 'category 3'
|
||||
deleted_at: '2005-01-01 00:00:00'
|
||||
category_4:
|
||||
id: 4
|
||||
widget_id: 2
|
||||
title: 'category 4'
|
||||
deleted_at: '2005-01-01 00:00:00'
|
||||
12
vendor/plugins/acts_as_paranoid/test/fixtures/categories_widgets.yml
vendored
Normal file
12
vendor/plugins/acts_as_paranoid/test/fixtures/categories_widgets.yml
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
cw_1:
|
||||
category_id: 1
|
||||
widget_id: 1
|
||||
cw_2:
|
||||
category_id: 2
|
||||
widget_id: 1
|
||||
cw_3:
|
||||
category_id: 3
|
||||
widget_id: 2
|
||||
cw_4:
|
||||
category_id: 4
|
||||
widget_id: 2
|
||||
9
vendor/plugins/acts_as_paranoid/test/fixtures/taggings.yml
vendored
Normal file
9
vendor/plugins/acts_as_paranoid/test/fixtures/taggings.yml
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
tagging_1:
|
||||
id: 1
|
||||
tag_id: 1
|
||||
widget_id: 1
|
||||
deleted_at: '2005-01-01 00:00:00'
|
||||
tagging_2:
|
||||
id: 2
|
||||
tag_id: 2
|
||||
widget_id: 1
|
||||
6
vendor/plugins/acts_as_paranoid/test/fixtures/tags.yml
vendored
Normal file
6
vendor/plugins/acts_as_paranoid/test/fixtures/tags.yml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
tag_1:
|
||||
id: 1
|
||||
name: 'tag 1'
|
||||
tag_2:
|
||||
id: 2
|
||||
name: 'tag 1'
|
||||
8
vendor/plugins/acts_as_paranoid/test/fixtures/widgets.yml
vendored
Normal file
8
vendor/plugins/acts_as_paranoid/test/fixtures/widgets.yml
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
widget_1:
|
||||
id: 1
|
||||
title: 'widget 1'
|
||||
widget_2:
|
||||
id: 2
|
||||
title: 'deleted widget 2'
|
||||
deleted_at: '2005-01-01 00:00:00'
|
||||
category_id: 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue