Commit 0f5b554b by nnnghia98

edit model files

parent aa3d07a6
...@@ -13,9 +13,5 @@ ...@@ -13,9 +13,5 @@
# index_cities_on_name (name) UNIQUE # index_cities_on_name (name) UNIQUE
# #
# In database
# t.string :name, unique: true
# t.string :region
class City < ApplicationRecord class City < ApplicationRecord
end end
...@@ -17,14 +17,6 @@ ...@@ -17,14 +17,6 @@
# index_companies_on_email (email) UNIQUE # index_companies_on_email (email) UNIQUE
# #
# In db
# t.string :name
# t.string :email, unique: true
# t.text :description
# t.string :address
# add_index :industries, :name, unique: true
class Company < ApplicationRecord class Company < ApplicationRecord
has_many :jobs, dependent: :destroy has_many :jobs, dependent: :destroy
end end
...@@ -12,8 +12,5 @@ ...@@ -12,8 +12,5 @@
# index_industries_on_name (name) UNIQUE # index_industries_on_name (name) UNIQUE
# #
# In db
# t.string :name
class Industry < ApplicationRecord class Industry < ApplicationRecord
end end
...@@ -28,19 +28,6 @@ ...@@ -28,19 +28,6 @@
# fk_rails_... (company_id => companies.id) # fk_rails_... (company_id => companies.id)
# #
# In database
# t.string :title
# t.string :level
# t.string :salary
# t.string :other_salary
# t.text :description
# t.text :short_des
# t.text :requirement
# t.integer :category
# t.datetime :post_date
# t.datetime :expiration_date
# t.references :company, null: false, foreign_key: true
class Job < ApplicationRecord class Job < ApplicationRecord
belongs_to :company belongs_to :company
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