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
path: root/db
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
parentbc7c5f87bbd5cc25a0aaf03e9e5ecf6a65375098 (diff)
Snippets feature refactored. Tests now use spinach
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130324172327_change_project_id_to_null_in_snipepts.rb9
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 2 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
diff --git a/db/schema.rb b/db/schema.rb
index 88e249047e6..f54bd2e16ea 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130324151736) do
+ActiveRecord::Schema.define(:version => 20130324172327) do
create_table "events", :force => true do |t|
t.string "target_type"
@@ -185,7 +185,7 @@ ActiveRecord::Schema.define(:version => 20130324151736) do
t.string "title"
t.text "content"
t.integer "author_id", :null => false
- t.integer "project_id", :null => false
+ t.integer "project_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "file_name"