diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-21 14:54:32 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-21 14:54:32 +0200 |
commit | f4e3ec29c46752c68b99fa2eb37cfb12463de9f2 (patch) | |
tree | 1d87d3f3220c6157322d8c34a95cc9dcbb16c40d /db | |
parent | 3d7b35a37d30365088947de0cf85cc7d4af79162 (diff) | |
download | gitlab-ce-f4e3ec29c46752c68b99fa2eb37cfb12463de9f2.tar.gz |
fixed commit commenting
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20120121122616_fix_noteable_id.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 16 |
2 files changed, 23 insertions, 2 deletions
diff --git a/db/migrate/20120121122616_fix_noteable_id.rb b/db/migrate/20120121122616_fix_noteable_id.rb new file mode 100644 index 00000000000..dbc0fa3e12c --- /dev/null +++ b/db/migrate/20120121122616_fix_noteable_id.rb @@ -0,0 +1,9 @@ +class FixNoteableId < ActiveRecord::Migration + def up + change_column :notes, :noteable_id, :string, :limit => 255 + end + + def down + change_column :notes, :noteable_id, :integer, :limit => 11 + end +end diff --git a/db/schema.rb b/db/schema.rb index 2fd670757de..3e7866f318a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,19 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120119203233) do +ActiveRecord::Schema.define(:version => 20120121122616) 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" + t.string "version" + t.integer "status", :default => 0, :null => false + end create_table "issues", :force => true do |t| t.string "title" @@ -54,7 +66,7 @@ ActiveRecord::Schema.define(:version => 20120119203233) do create_table "notes", :force => true do |t| t.text "note" - t.integer "noteable_id", :limit => 255 + t.string "noteable_id" t.string "noteable_type" t.integer "author_id" t.datetime "created_at" |