diff options
| author | Andrew8xx8 <avk@8xx8.ru> | 2013-03-23 22:14:37 +0400 |
|---|---|---|
| committer | Andrew8xx8 <avk@8xx8.ru> | 2013-03-23 22:14:37 +0400 |
| commit | cc869d5dc101ea1175e308d8532064f06072d08b (patch) | |
| tree | 3f8e602abc18a95fbefc479710b37e203c903fc4 /db | |
| parent | 77faffbda3e6d26329b140b0a38f71dcdb9aa381 (diff) | |
| download | gitlab-ce-cc869d5dc101ea1175e308d8532064f06072d08b.tar.gz | |
Private field added to snippet
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20130323174317_add_private_to_snippets.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20130323174317_add_private_to_snippets.rb b/db/migrate/20130323174317_add_private_to_snippets.rb new file mode 100644 index 00000000000..427b530464d --- /dev/null +++ b/db/migrate/20130323174317_add_private_to_snippets.rb @@ -0,0 +1,5 @@ +class AddPrivateToSnippets < ActiveRecord::Migration + def change + add_column :snippets, :private, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index e4349ac4bf7..a48b85c153e 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 => 20130318212250) do +ActiveRecord::Schema.define(:version => 20130323174317) do create_table "events", :force => true do |t| t.string "target_type" @@ -190,6 +190,7 @@ ActiveRecord::Schema.define(:version => 20130318212250) do t.datetime "updated_at", :null => false t.string "file_name" t.datetime "expires_at" + t.boolean "private" end add_index "snippets", ["created_at"], :name => "index_snippets_on_created_at" |
