Commit f0180454 authored by Andreas Brandl's avatar Andreas Brandl

Adjust example with text constraint

parent 5556fe8f
......@@ -28,13 +28,13 @@ module Gitlab
#
# Example:
#
# create_table :some_table do |t|
# t.integer :thing, null: false
# t.text :other_thing
# create_table :db_guides do |t|
# t.bigint :stars, default: 0, null: false
# t.text :title, limit: 128
# t.text :notes, limit: 1024
#
# t.check_constraint 'thing IS NOT NULL', name: 'thing_is_not_null'
# t.text_limit :other_thing, 255
# end
# t.check_constraint 'stars > 1000', name: 'so_many_stars'
# end
#
# See Rails' `create_table` for more info on the available arguments.
#
......
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