diff options
| author | Zog | 2018-03-02 11:16:33 +0100 | 
|---|---|---|
| committer | Zog | 2018-03-02 11:16:33 +0100 | 
| commit | 4e0ef1700c8c105f5e5a7e4c3af20f6065bef461 (patch) | |
| tree | 759bdc67544dc3d657ce05ef2bcb8dac0c3e1f63 /db/migrate | |
| parent | 4acb5a53da2995aacc7b6ce2c802ad16fa563bf8 (diff) | |
| download | chouette-core-4e0ef1700c8c105f5e5a7e4c3af20f6065bef461.tar.bz2 | |
Refs #6068; Create a SimpleExporter model
This is an STI model, inheriting from SimpleInterface
SimpleImporter has been updated to work likewise
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20180301142531_create_simple_exporters.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/db/migrate/20180301142531_create_simple_exporters.rb b/db/migrate/20180301142531_create_simple_exporters.rb new file mode 100644 index 000000000..c007546c2 --- /dev/null +++ b/db/migrate/20180301142531_create_simple_exporters.rb @@ -0,0 +1,7 @@ +class CreateSimpleExporters < ActiveRecord::Migration +  def change +    rename_table :simple_importers, :simple_interfaces +    add_column :simple_interfaces, :type, :string +    SimpleInterface.update_all type: :SimpleImporter +  end +end | 
