Index name limited to 30 characters in Oracle DB.
class AddIndexToCharacteristicProperty < ActiveRecord::Migration
def self.up
- add_index :characteristic_properties, :characteristic_id, :name => 'characteristic_properties_characteristic_id'
+ add_index :characteristic_properties, :characteristic_id, :name => 'characteristic_properties_cid'
end
end
TEXT_VALUE VARCHAR(4000),
primary key (id)
);
-CREATE INDEX CHARACTERISTIC_PROPERTIES_CHARACTERISTIC_ID ON CHARACTERISTIC_PROPERTIES (CHARACTERISTIC_ID);
+CREATE INDEX CHARACTERISTIC_PROPERTIES_CID ON CHARACTERISTIC_PROPERTIES (CHARACTERISTIC_ID);
create table CRITERIA (
ID INTEGER not null,