To reset the database, run:
rake db:reset db:drop db:create db:structure:load db:migrate db:seed
FactoryGirl.create_list(:kase_with_deceased, 10)
FactoryGirl.create_list(:case, 10)
FactoryGirl.create_list(:inquiry, 10)
To generate a whole bunch of data after a reset, use:
rails c
FactoryGirl.create_list(:kase_with_deceased, 10) && FactoryGirl.create_list(:inquiry, 10) && FactoryGirl.create_list(:product, 10) && FactoryGirl.create_list(:package, 10)
Name | Async from serve/store | Sync from store | Query server |
---|---|---|---|
Single Record | findRecord(type, id) |
peekRecord(type, id) |
queryRecord(type, {query}) |
All Records | findAll(type) |
peekAll(type) |
query(type, {query}) |
{{full-name "Daniel" model.lastName}}
{{my-component name=(full-name model.firstName "Smith")}}
{{! The following usage would set the model.name to the new full name when my-component calls the submit action. }}
{{my-component submit=(action (mut model.name) (full-name model.firstName "Smith"))}}
Rename Local Branch
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote