Commit 1030295e by Xuan Trung Le

fix creating db

parent 5774f9b2
...@@ -16,11 +16,10 @@ gem 'puma', '~> 3.7' ...@@ -16,11 +16,10 @@ gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0' gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets # Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0' gem 'uglifier', '>= 1.3.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
gem 'figaro' gem 'figaro'
gem 'devise' gem 'devise'
gem 'carrierwave'
gem 'kaminari'
group :development, :test do group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console # Call 'byebug' anywhere in the code to stop execution and get a debugger console
......
...@@ -43,6 +43,10 @@ GEM ...@@ -43,6 +43,10 @@ GEM
bindex (0.5.0) bindex (0.5.0)
builder (3.2.3) builder (3.2.3)
byebug (9.1.0) byebug (9.1.0)
carrierwave (1.2.0)
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
concurrent-ruby (1.0.5) concurrent-ruby (1.0.5)
crass (1.0.2) crass (1.0.2)
devise (4.3.0) devise (4.3.0)
...@@ -59,6 +63,18 @@ GEM ...@@ -59,6 +63,18 @@ GEM
globalid (0.4.0) globalid (0.4.0)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
i18n (0.8.6) i18n (0.8.6)
kaminari (1.0.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.0.1)
kaminari-activerecord (= 1.0.1)
kaminari-core (= 1.0.1)
kaminari-actionview (1.0.1)
actionview
kaminari-core (= 1.0.1)
kaminari-activerecord (1.0.1)
activerecord
kaminari-core (= 1.0.1)
kaminari-core (1.0.1)
listen (3.1.5) listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4) rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7) rb-inotify (~> 0.9, >= 0.9.7)
...@@ -140,9 +156,6 @@ GEM ...@@ -140,9 +156,6 @@ GEM
thor (0.20.0) thor (0.20.0)
thread_safe (0.3.6) thread_safe (0.3.6)
tilt (2.0.8) tilt (2.0.8)
turbolinks (5.0.1)
turbolinks-source (~> 5)
turbolinks-source (5.0.3)
tzinfo (1.2.3) tzinfo (1.2.3)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (3.2.0) uglifier (3.2.0)
...@@ -163,8 +176,10 @@ PLATFORMS ...@@ -163,8 +176,10 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
byebug byebug
carrierwave
devise devise
figaro figaro
kaminari
listen (>= 3.0.5, < 3.2) listen (>= 3.0.5, < 3.2)
mysql2 (>= 0.3.18, < 0.5) mysql2 (>= 0.3.18, < 0.5)
puma (~> 3.7) puma (~> 3.7)
...@@ -172,7 +187,6 @@ DEPENDENCIES ...@@ -172,7 +187,6 @@ DEPENDENCIES
sass-rails (~> 5.0) sass-rails (~> 5.0)
spring spring
spring-watcher-listen (~> 2.0.0) spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
tzinfo-data tzinfo-data
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
web-console (>= 3.3.0) web-console (>= 3.3.0)
......
class Industry < ApplicationRecord class Industry < ApplicationRecord
has_many :industry_jobs has_many :industries_jobs
has_many :jobs, through: :industry_jobs has_many :jobs, through: :industries_jobs
end end
...@@ -5,6 +5,6 @@ class Job < ApplicationRecord ...@@ -5,6 +5,6 @@ class Job < ApplicationRecord
has_many :users, through: :favorite_jobs has_many :users, through: :favorite_jobs
has_many :favorite_jobs has_many :favorite_jobs
has_many :users, through: :favorite_jobs has_many :users, through: :favorite_jobs
has_many :industry_jobs has_many :industries_jobs
has_many :industries, through: :industry_jobs has_many :industries, through: :industries_jobs
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment