Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_thanhnd
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
3
Merge Requests
3
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
thanhnd
venjob_thanhnd
Commits
35782d33
Commit
35782d33
authored
Feb 19, 2020
by
thanhnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add index to migration
parent
4432b5e6
Pipeline
#470
failed with stages
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
db/migrate/20200204084723_create_cities.rb
+1
-0
db/migrate/20200204084729_create_companies.rb
+1
-0
db/schema.rb
+2
-0
No files found.
db/migrate/20200204084723_create_cities.rb
View file @
35782d33
...
@@ -6,5 +6,6 @@ class CreateCities < ActiveRecord::Migration[6.0]
...
@@ -6,5 +6,6 @@ class CreateCities < ActiveRecord::Migration[6.0]
t
.
string
:city_description
t
.
string
:city_description
t
.
timestamps
t
.
timestamps
end
end
add_index
:cities
,
:city_name
end
end
end
end
db/migrate/20200204084729_create_companies.rb
View file @
35782d33
...
@@ -10,5 +10,6 @@ class CreateCompanies < ActiveRecord::Migration[6.0]
...
@@ -10,5 +10,6 @@ class CreateCompanies < ActiveRecord::Migration[6.0]
t
.
string
:size
t
.
string
:size
t
.
timestamps
t
.
timestamps
end
end
add_index
:companies
,
:email
end
end
end
end
db/schema.rb
View file @
35782d33
...
@@ -32,6 +32,7 @@ ActiveRecord::Schema.define(version: 2020_02_04_084755) do
...
@@ -32,6 +32,7 @@ ActiveRecord::Schema.define(version: 2020_02_04_084755) do
t
.
string
"city_description"
t
.
string
"city_description"
t
.
datetime
"created_at"
,
precision:
6
,
null:
false
t
.
datetime
"created_at"
,
precision:
6
,
null:
false
t
.
datetime
"updated_at"
,
precision:
6
,
null:
false
t
.
datetime
"updated_at"
,
precision:
6
,
null:
false
t
.
index
[
"city_name"
],
name:
"index_cities_on_city_name"
end
end
create_table
"companies"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
create_table
"companies"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
...
@@ -44,6 +45,7 @@ ActiveRecord::Schema.define(version: 2020_02_04_084755) do
...
@@ -44,6 +45,7 @@ ActiveRecord::Schema.define(version: 2020_02_04_084755) do
t
.
string
"size"
t
.
string
"size"
t
.
datetime
"created_at"
,
precision:
6
,
null:
false
t
.
datetime
"created_at"
,
precision:
6
,
null:
false
t
.
datetime
"updated_at"
,
precision:
6
,
null:
false
t
.
datetime
"updated_at"
,
precision:
6
,
null:
false
t
.
index
[
"email"
],
name:
"index_companies_on_email"
end
end
create_table
"industries"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
create_table
"industries"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
...
...
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