diff options
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  | 
