/poo_ecommerce

Ruby on Rails exercise. Backend of an ecommerce application.

Primary LanguageRuby

Installation

  1. Copy db/config.yml.example and rename it config.yml
  2. Ruby
    1. For Windows : ruby 2.6.5.1
    2. gem install bundle
    3. bundle install
  3. db
    1. rake db:create
    2. rake db:migrate

Rake

rake --tasks

rake db:new_migration name=create_client

Observer

Add this line to your application's Gemfile:

gem 'rails-observers'

And then execute:

$ bundle

Add

require 'rails/observers/activerecord/active_record' 

to the observer file