summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAndrew8xx8 <avk@8xx8.ru>2013-03-24 19:26:49 +0400
committerAndrew8xx8 <avk@8xx8.ru>2013-03-24 19:26:49 +0400
commitbc7c5f87bbd5cc25a0aaf03e9e5ecf6a65375098 (patch)
treeb88052b6ad67a099a97d8745e9c455157f0956a9 /db
parent7d2fbe6bd880b001857a373500e4fae31d43060a (diff)
downloadgitlab-ce-bc7c5f87bbd5cc25a0aaf03e9e5ecf6a65375098.tar.gz
Project snippet moved to separate model
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130324151736_add_type_to_snippets.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20130324151736_add_type_to_snippets.rb b/db/migrate/20130324151736_add_type_to_snippets.rb
new file mode 100644
index 00000000000..276aab2ca15
--- /dev/null
+++ b/db/migrate/20130324151736_add_type_to_snippets.rb
@@ -0,0 +1,5 @@
+class AddTypeToSnippets < ActiveRecord::Migration
+ def change
+ add_column :snippets, :type, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index a48b85c153e..88e249047e6 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 => 20130323174317) do
+ActiveRecord::Schema.define(:version => 20130324151736) do
create_table "events", :force => true do |t|
t.string "target_type"
@@ -191,6 +191,7 @@ ActiveRecord::Schema.define(:version => 20130323174317) do
t.string "file_name"
t.datetime "expires_at"
t.boolean "private"
+ t.string "type"
end
add_index "snippets", ["created_at"], :name => "index_snippets_on_created_at"