Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f0180454
Commit
f0180454
authored
Sep 15, 2021
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust example with text constraint
parent
5556fe8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lib/gitlab/database/migration_helpers/v2.rb
lib/gitlab/database/migration_helpers/v2.rb
+6
-6
No files found.
lib/gitlab/database/migration_helpers/v2.rb
View file @
f0180454
...
@@ -28,12 +28,12 @@ module Gitlab
...
@@ -28,12 +28,12 @@ module Gitlab
#
#
# Example:
# Example:
#
#
# create_table :some_table do |t|
# create_table :db_guides do |t|
# t.integer :thing, null: false
# t.bigint :stars, default: 0, null: false
# t.text :other_thing
# t.text :title, limit: 128
# t.text :notes, limit: 1024
#
#
# t.check_constraint 'thing IS NOT NULL', name: 'thing_is_not_null'
# t.check_constraint 'stars > 1000', name: 'so_many_stars'
# t.text_limit :other_thing, 255
# end
# end
#
#
# See Rails' `create_table` for more info on the available arguments.
# See Rails' `create_table` for more info on the available arguments.
...
...
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