Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VietTH-VenShop
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
4
Merge Requests
4
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
Tran Hoang Viet
VietTH-VenShop
Commits
01aebadf
Commit
01aebadf
authored
Jul 06, 2015
by
Tran Hoang Viet
Browse files
Options
Browse Files
Download
Plain Diff
VietTH: Merge from develop to vietth_feat_user_management
parents
f9bdb5f9
d1b9f8b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
db/migrate/20150703024141_add_contraints_to_products.rb
+11
-0
No files found.
db/migrate/20150703024141_add_contraints_to_products.rb
0 → 100644
View file @
01aebadf
class
AddContraintsToProducts
<
ActiveRecord
::
Migration
def
up
change_column
:products
,
:title
,
:string
,
null:
false
change_column
:products
,
:category_id
,
:integer
,
index:
true
,
null:
false
end
def
down
change_column
:products
,
:title
,
:string
change_column
:products
,
:category_id
,
:integer
,
index:
true
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