database_rewinder icon indicating copy to clipboard operation
database_rewinder copied to clipboard

Implement handy interface for configuring filtered tables

Open deeeki opened this issue 11 years ago • 6 comments

handy interface for configuring :except and :only discussed #18 and asakusa.rb meetup.

# Usage
DatabaseRewinder.filter_options = { except: ["foos"] }
DatabaseRewinder.clean_all

I named filter_options=, but I'll leave other candidates :memo:

  • filter_settings
  • filtered_tables
  • filtered_table_options
  • filter_table_options
  • table_options
  • tables_to_filter
  • filtering_options
  • filtering

deeeki avatar Jun 22 '14 07:06 deeeki

Hey guys, is this happening or what? This is very important. :+1:

estevaoam avatar Apr 02 '15 16:04 estevaoam

:+1: for merging. It'll be very useful.

mknapik avatar Jan 20 '16 07:01 mknapik

Any news on this one?

scarfacedeb avatar Jul 11 '16 18:07 scarfacedeb

I agree that we need this interface. I'd love to merge this as soon as we come up with a good name. Any more suggestions?

amatsuda avatar Jul 12 '16 09:07 amatsuda

What about plain DatabaseRewinder.tables = {}?

scarfacedeb avatar Jul 14 '16 12:07 scarfacedeb

Both DatabaseRewinder.tables and DatabaseRewinder.filter_table_options are good names. Nevertheless, the functionality is way more important than the naming IMO.

estevaoam avatar Jul 14 '16 16:07 estevaoam