| Class | ActiveRecord::Base |
| In: |
lib/ar_fixtures.rb
|
| Parent: | Object |
Extension to make it easy to read and write data to a file.
Writes content of this table to db/table_name.yml, or the specified file.
Writes all content by default, but can be limited.
Write a file that can be loaded with +fixture :some_table+ in tests. Uses existing data in the database.
Will be written to +test/fixtures/table_name.yml+. Can be restricted to some number of rows.