aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml
blob: fc3185dc4697655f22c0eb64a07ae65fe1ec3d2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
# Set the $base_id variable in the setup method of your tests.
# It's used to ensure that ids don't clash in some databases.
<%% $base_id ||= 100000 %>

first_<%= singular_name %>:
  id: <%%= $base_id %>

another_<%= singular_name %>:
  id: <%%= $base_id + 1 %>