diff options
| author | Edouard Maffert | 2016-06-27 16:16:52 +0200 | 
|---|---|---|
| committer | Edouard Maffert | 2016-06-27 16:16:52 +0200 | 
| commit | 985b2ab985741896daa1499d78c93e7f71a8e0c9 (patch) | |
| tree | 05dcce03048d173dc6d7beac625941a4a2db4f7b /db/migrate | |
| parent | 096a4aed7d28624a8578b568acbff5d6fbbda082 (diff) | |
| download | chouette-core-985b2ab985741896daa1499d78c93e7f71a8e0c9.tar.bz2 | |
add line_referential_sync and line_sync_operation models
Diffstat (limited to 'db/migrate')
3 files changed, 24 insertions, 0 deletions
diff --git a/db/migrate/20160623083902_add_sync_interval_to_line_referentials.rb b/db/migrate/20160623083902_add_sync_interval_to_line_referentials.rb new file mode 100644 index 000000000..2bde737cb --- /dev/null +++ b/db/migrate/20160623083902_add_sync_interval_to_line_referentials.rb @@ -0,0 +1,5 @@ +class AddSyncIntervalToLineReferentials < ActiveRecord::Migration +  def change +    add_column :line_referentials, :sync_interval, :int, :default => 1 +  end +end diff --git a/db/migrate/20160627124327_create_line_referential_syncs.rb b/db/migrate/20160627124327_create_line_referential_syncs.rb new file mode 100644 index 000000000..b1383f6c6 --- /dev/null +++ b/db/migrate/20160627124327_create_line_referential_syncs.rb @@ -0,0 +1,9 @@ +class CreateLineReferentialSyncs < ActiveRecord::Migration +  def change +    create_table :line_referential_syncs do |t| +      t.references :line_referential, index: true + +      t.timestamps +    end +  end +end diff --git a/db/migrate/20160627124541_create_line_sync_operations.rb b/db/migrate/20160627124541_create_line_sync_operations.rb new file mode 100644 index 000000000..ec32cf4ac --- /dev/null +++ b/db/migrate/20160627124541_create_line_sync_operations.rb @@ -0,0 +1,10 @@ +class CreateLineSyncOperations < ActiveRecord::Migration +  def change +    create_table :line_sync_operations do |t| +      t.string :status +      t.references :line_referential_sync, index: true + +      t.timestamps +    end +  end +end  | 
