Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-24 22:31:14 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-24 22:31:14 +0400
commit5b35000f16201bd631f161ef6d79b0a77dc2c27b (patch)
tree903e41d676c1939bae2cb8d6232c7fc9380bbff5 /db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb
parentbc7c5f87bbd5cc25a0aaf03e9e5ecf6a65375098 (diff)
Snippets feature refactored. Tests now use spinach
Diffstat (limited to 'db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb')
-rw-r--r--db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb b/db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb
new file mode 100644
index 00000000000..4c992bac4d1
--- /dev/null
+++ b/db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb
@@ -0,0 +1,9 @@
+class ChangeProjectIdToNullInSnipepts < ActiveRecord::Migration
+ def up
+ change_column :snippets, :project_id, :integer, :null => true
+ end
+
+ def down
+ change_column :snippets, :project_id, :integer, :null => false
+ end
+end