From 4eb461fbd24ad0f60d7a204151d109b666e886ea Mon Sep 17 00:00:00 2001 From: Martin Czuchra Date: Mon, 4 Feb 2013 15:08:51 +0100 Subject: [PATCH] Adds index to identifier field on projects. --- ...20130204140624_add_index_on_identifier_to_projects.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20130204140624_add_index_on_identifier_to_projects.rb diff --git a/db/migrate/20130204140624_add_index_on_identifier_to_projects.rb b/db/migrate/20130204140624_add_index_on_identifier_to_projects.rb new file mode 100644 index 0000000000..d56088e692 --- /dev/null +++ b/db/migrate/20130204140624_add_index_on_identifier_to_projects.rb @@ -0,0 +1,9 @@ +class AddIndexOnIdentifierToProjects < ActiveRecord::Migration + def self.up + add_index :projects, :identifier + end + + def self.down + remove_index :projects, :identifier + end +end