-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fractional store prices #246
Conversation
.travis.yml
Outdated
@@ -5,3 +5,4 @@ bundler_args: --without development staging production | |||
sudo: false | |||
before_script: | |||
- bundle exec rake db:test:prepare | |||
- bundle exec rake db:migrate RAILS_ENV=test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this workaround to do the proper thing for Rails 4.1+. http://stackoverflow.com/questions/17150529/why-am-i-asked-to-run-rake-dbmigrate-rails-env-test
db/seeds.rb
Outdated
@@ -719,7 +719,7 @@ | |||
# Store ------------------------------------------------------------------------- | |||
puts 'Store' | |||
|
|||
StoreItem.create({ name: '9 Volt Battery', price: 1, quantity: 1000}) | |||
StoreItem.create({ name: '9 Volt Battery', price: 0.99, quantity: 1000}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change the store item prices in the seeds file. If you need to verify it works, change the objects in the test seeds. This file is currently used to persist long-term data (store prices, tool barcodes, etc.) so we don't want to make changes like this.
Changed database types to support fractional store prices