diff options
author | gitlabhq <m@gitlabhq.com> | 2011-11-24 17:08:20 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-11-24 17:08:20 +0400 |
commit | ee2d3de1a634611a1c660516c955be0d3000904b (patch) | |
tree | f4bb868df7cfc4400a50a4f6056a188503f718f5 /db | |
parent | b4c40c212c377ee04bb16065388c24b4bd3ec656 (diff) |
ability to attach branch to issue
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20111124115339_add_extra_field_to_issue.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/db/migrate/20111124115339_add_extra_field_to_issue.rb b/db/migrate/20111124115339_add_extra_field_to_issue.rb new file mode 100644 index 00000000000..4946c6fb0bc --- /dev/null +++ b/db/migrate/20111124115339_add_extra_field_to_issue.rb @@ -0,0 +1,5 @@ +class AddExtraFieldToIssue < ActiveRecord::Migration + def change + add_column :issues, :branch_name, :string, :null => true + end +end diff --git a/db/schema.rb b/db/schema.rb index 83f916d4acf..502f52ad9cb 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,17 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20111115063954) do +ActiveRecord::Schema.define(:version => 20111124115339) do + + create_table "features", :force => true do |t| + t.string "name" + t.string "branch_name" + t.integer "assignee_id" + t.integer "author_id" + t.integer "project_id" + t.datetime "created_at" + t.datetime "updated_at" + end create_table "issues", :force => true do |t| t.string "title" @@ -23,6 +33,7 @@ ActiveRecord::Schema.define(:version => 20111115063954) do t.boolean "closed", :default => false, :null => false t.integer "position", :default => 0 t.boolean "critical", :default => false, :null => false + t.string "branch_name" end create_table "keys", :force => true do |t| |