diff options
| author | Robert | 2018-01-09 18:45:26 +0100 |
|---|---|---|
| committer | Alban Peignier | 2018-01-10 17:47:10 +0100 |
| commit | a7fe8da0bc230ee7f5d3173454fc07b596970d13 (patch) | |
| tree | 9b698c4d1d8c2bc1eecceaeed0f25ce76088392a /db/migrate | |
| parent | fd553851e9e6c59b998eef8577836a954c4d43f3 (diff) | |
| download | chouette-core-a7fe8da0bc230ee7f5d3173454fc07b596970d13.tar.bz2 | |
Fixes: #5505@2h; Migrations, specs and implementations
- Migration index_resource_type_on_custom_fields
- Specing behavior of custom field's resource (VehicleJourney)
- Migration create json col custom_field_values for resource (VehicleJourney)
- Create accessor methods inside resource (VehicleJourney)
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20180109173815_add_index_resource_type_on_custom_fields.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20180109180350_add_custom_field_values_to_vehicle_journeys.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20180109173815_add_index_resource_type_on_custom_fields.rb b/db/migrate/20180109173815_add_index_resource_type_on_custom_fields.rb new file mode 100644 index 000000000..326e85806 --- /dev/null +++ b/db/migrate/20180109173815_add_index_resource_type_on_custom_fields.rb @@ -0,0 +1,5 @@ +class AddIndexResourceTypeOnCustomFields < ActiveRecord::Migration + def change + add_index :custom_fields, :resource_type + end +end diff --git a/db/migrate/20180109180350_add_custom_field_values_to_vehicle_journeys.rb b/db/migrate/20180109180350_add_custom_field_values_to_vehicle_journeys.rb new file mode 100644 index 000000000..3f0f7cd7b --- /dev/null +++ b/db/migrate/20180109180350_add_custom_field_values_to_vehicle_journeys.rb @@ -0,0 +1,5 @@ +class AddCustomFieldValuesToVehicleJourneys < ActiveRecord::Migration + def change + add_column :vehicle_journeys, :custom_field_values, :json + end +end |
