@@ -23,16 +23,22 @@ Place references in 'db/reference/'
2323References will be loaded in ascending order, so if an order is desired, prepend 000, 001, 002... etc to the filename.
2424
2525Run with:
26- rake easy:reference_data: load
26+ rake easy:reference_data: refresh
27+
28+ ## Deployment
29+
30+ Add this line to your application's deploy.rb file:
31+
32+ require 'easy/reference_data/capistrano'
2733
2834## Example
2935
3036The below example ensures that there are 3 users existing in the database after running the 'rake reference_data: load '
3137
32- ### db/reference/000_users.rb
33- Easy::ReferenceData.refresh User, : system_code , 'nigel', name: 'Nigel Ramsay', email: 'nigel.ramsay@mailinator.com '
34- Easy::ReferenceData.refresh User, : system_code , 'fred', name: 'Fred Schmitt', email: 'fred.schmitt@mailinator.com '
35- Easy::ReferenceData.refresh User, : system_code , 'bert', name: 'Bert Symthe', email: 'bert.smythe@mailinator.com '
38+ ### db/reference/000_users.rb
39+ Easy::ReferenceData.refresh User, :system_code, 'nigel', name: 'Nigel Ramsay', email: 'nigel.ramsay@mailinator.com'
40+ Easy::ReferenceData.refresh User, :system_code, 'fred', name: 'Fred Schmitt', email: 'fred.schmitt@mailinator.com'
41+ Easy::ReferenceData.refresh User, :system_code, 'bert', name: 'Bert Symthe', email: 'bert.smythe@mailinator.com'
3642
3743## Contributing
3844
0 commit comments