Skip to content
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

Merged
merged 4 commits into from
Mar 28, 2017
Merged

Fractional store prices #246

merged 4 commits into from
Mar 28, 2017

Conversation

sclark
Copy link
Member

@sclark sclark commented Mar 24, 2017

Changed database types to support fractional store prices

@coveralls
Copy link

Coverage Status

Coverage remained the same at 15.349% when pulling b6fa64a on fractional-store-prices into a5b7e67 on new-features.

.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
Copy link
Member

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})
Copy link
Member

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 15.349% when pulling 3135ef7 on fractional-store-prices into a5b7e67 on new-features.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 15.349% when pulling e5c81fa on fractional-store-prices into a5b7e67 on new-features.

@sclark sclark merged commit de1891d into new-features Mar 28, 2017
@sclark sclark deleted the fractional-store-prices branch March 28, 2017 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants