Skip to content

Commit 6ba45c8

Browse files
committed
Update tape model to include operation
1 parent 623926a commit 6ba45c8

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

db/migrate/20210425060550_create_tapes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ def change
55
t.string :slug, null: false
66
t.integer :met_start, null: false
77
t.integer :met_end, null: false
8+
t.string :operation, null: false
89
t.integer :min_block
910
t.integer :max_block
1011
t.references :mission, index: true, foreign_key: true

db/schema.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
t.string "slug", null: false
239239
t.integer "met_start", null: false
240240
t.integer "met_end", null: false
241+
t.string "operation", null: false
241242
t.integer "min_block"
242243
t.integer "max_block"
243244
t.bigint "mission_id"

db/seeds.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@
118118
# tr.save!
119119

120120
tapes = [
121-
["T870","t870", 1, -14558954, -14532287, 1, 2],
122-
["T869", "t869", 1, -14567263, -14538463, 5, 5]
121+
["T870","t870", "Lift Off", 1, -14558954, -14532287, 1, 2],
122+
["T869", "t869", "Lift Off", 1, -14567263, -14538463, 5, 5]
123123
]
124124

125-
tapes.each_with_index do |(title, slug,missionId, met_start, met_end, minBlock, maxBlock), index|
126-
Tape.find_or_create_by(title: title, slug: slug, mission_id: missionId,met_start: met_start, met_end: met_end, min_block: minBlock, max_block: maxBlock)
125+
tapes.each_with_index do |(title, slug, operation, missionId, met_start, met_end, minBlock, maxBlock), index|
126+
Tape.find_or_create_by(title: title, slug: slug, operation: operation, mission_id: missionId,met_start: met_start, met_end: met_end, min_block: minBlock, max_block: maxBlock)
127127
end
128128

129129
channels=[
@@ -371,7 +371,7 @@
371371
transcribers=[
372372
["https://exploreapollo-data.s3.amazonaws.com/audio/Lift_Off/A11_T870_HR2L_CH24_MOCR/A11_T870_HR2L_CH24_197-11-50-46_197-19-15-13-01-01.trs"],
373373
["https://exploreapollo-data.s3.amazonaws.com/audio/Lift_Off/A11_T870_HR2L_CH24_MOCR/A11_T870_HR2L_CH24_197-11-50-46_197-19-15-13-01-02.trs"],
374-
["https://exploreapollo-data.s3.amazonaws.com/audio/Lift_Off/A11_T870_HR2L_CH20_FD/A11_T870_HR2L_CH20_197-11-50-46_197-19-15-13-01-01.trs"],
374+
["https://exploreapollo-data.s3.amazonaws.com/audio/Lift_Off/A11_T870_HR2L_CH20_FD/A11_T870_HR2L_CH20_197-11-50-46_197-19-15-13-01-01.json"],
375375
["https://exploreapollo-data.s3.amazonaws.com/audio/Lift_Off/A11_T870_HR2L_CH20_FD/A11_T870_HR2L_CH20_197-11-50-46_197-19-15-13-01-02.trs"],
376376

377377
["https://exploreapollo-data.s3.amazonaws.com/audio/Lift_Off/A11_T870_HR2L_CH20_FD/A11_T870_HR2L_CH20_197-11-50-46_197-19-15-13-01-03.trs"],

0 commit comments

Comments
 (0)