Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJOB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Ngoc Nghia
VeNJOB
Commits
56e0a7b6
Commit
56e0a7b6
authored
Dec 03, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
82d540fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
db/migrate/20191126082849_create_users.rb
+1
-5
db/migrate/20191126083110_create_jobs.rb
+1
-5
No files found.
db/migrate/20191126082849_create_users.rb
View file @
56e0a7b6
class
CreateUsers
<
ActiveRecord
::
Migration
[
6.0
]
class
CreateUsers
<
ActiveRecord
::
Migration
[
6.0
]
def
up
def
change
create_table
:users
do
|
t
|
create_table
:users
do
|
t
|
t
.
string
:first_name
t
.
string
:first_name
t
.
string
:last_name
t
.
string
:last_name
...
@@ -48,8 +48,4 @@ class CreateUsers < ActiveRecord::Migration[6.0]
...
@@ -48,8 +48,4 @@ class CreateUsers < ActiveRecord::Migration[6.0]
# add_index :users, :confirmation_token, unique: true
# add_index :users, :confirmation_token, unique: true
# add_index :users, :unlock_token, unique: true
# add_index :users, :unlock_token, unique: true
end
end
def
down
drop_table
:users
end
end
end
db/migrate/20191126083110_create_jobs.rb
View file @
56e0a7b6
class
CreateJobs
<
ActiveRecord
::
Migration
[
6.0
]
class
CreateJobs
<
ActiveRecord
::
Migration
[
6.0
]
def
up
def
change
create_table
:jobs
do
|
t
|
create_table
:jobs
do
|
t
|
t
.
string
:title
t
.
string
:title
t
.
string
:level
t
.
string
:level
...
@@ -16,8 +16,4 @@ class CreateJobs < ActiveRecord::Migration[6.0]
...
@@ -16,8 +16,4 @@ class CreateJobs < ActiveRecord::Migration[6.0]
t
.
timestamps
t
.
timestamps
end
end
end
end
def
down
drop_table
:jobs
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment