diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-05-03 18:26:49 +0300 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-05-31 08:17:03 +0300 |
commit | 4464c22d6d23d893494682d309aec3fb31c11ae3 (patch) | |
tree | cb7490034185f79c88db472650b87afdcdbafa3f /db/migrate/20170503114228_add_description_to_snippets.rb | |
parent | 8039b9c3c6caedc19e0e44d086a007e8975134b7 (diff) |
Support descriptions for snippets
Diffstat (limited to 'db/migrate/20170503114228_add_description_to_snippets.rb')
-rw-r--r-- | db/migrate/20170503114228_add_description_to_snippets.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20170503114228_add_description_to_snippets.rb b/db/migrate/20170503114228_add_description_to_snippets.rb new file mode 100644 index 00000000000..3fc960b2da5 --- /dev/null +++ b/db/migrate/20170503114228_add_description_to_snippets.rb @@ -0,0 +1,12 @@ +class AddDescriptionToSnippets < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_column :snippets, :description, :text + add_column :snippets, :description_html, :text + end +end |