diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-21 12:16:26 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-21 12:16:26 +0300 |
commit | 625fb2f29d99ab21de2497a36512be69c80e39be (patch) | |
tree | 2ca8f7d92d4974425a67a5288ee79e14bc60e01d /db | |
parent | 0a0b0e1eab251c7e9c9dedc620f14602f8ce3541 (diff) | |
download | gitlab-ce-625fb2f29d99ab21de2497a36512be69c80e39be.tar.gz |
Add iids to milestones. Moved iids logic to separate concern
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130821090531_add_internal_ids_to_milestones.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20130821090531_add_internal_ids_to_milestones.rb b/db/migrate/20130821090531_add_internal_ids_to_milestones.rb new file mode 100644 index 00000000000..33e5bae5805 --- /dev/null +++ b/db/migrate/20130821090531_add_internal_ids_to_milestones.rb @@ -0,0 +1,5 @@ +class AddInternalIdsToMilestones < ActiveRecord::Migration + def change + add_column :milestones, :iid, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index b8e7d3dd6f2..429551a2bf4 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 => 20130821090530) do +ActiveRecord::Schema.define(:version => 20130821090531) do create_table "deploy_keys_projects", :force => true do |t| t.integer "deploy_key_id", :null => false @@ -119,6 +119,7 @@ ActiveRecord::Schema.define(:version => 20130821090530) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "state" + t.integer "iid" end add_index "milestones", ["due_date"], :name => "index_milestones_on_due_date" |