issues
search
rrabinovitch
/
rails_engine_rr
ReST API for sales data
0
stars
0
forks
source link
Create rake task
#1
Closed
rrabinovitch
closed
4 years ago
rrabinovitch
commented
4 years ago
[x] Clear your Development database to prevent data duplication
[x] Seed your Development database with the CSV data
[x] Be invokable through Rake, i.e. you should be able to run
bundle exec rake <your_rake_task_name>
from the command line
[x] Convert all prices before storing. Prices are in cents, therefore you will need to transform them to dollars. (
12345
becomes
123.45
)
[x] Reset the primary key sequence for each table you import so that new records will receive the next valid primary key
bundle exec rake <your_rake_task_name>
from the command line12345
becomes123.45
)