Skip to content

Instantly share code, notes, and snippets.

@cavalle
Created February 20, 2017 10:03
Show Gist options
  • Save cavalle/f3a9014243ba4dfe99bf465f6e821f39 to your computer and use it in GitHub Desktop.
Save cavalle/f3a9014243ba4dfe99bf465f6e821f39 to your computer and use it in GitHub Desktop.
channels = [
["TV3+ Denmark", "3PD"],
["Viasat Film Action", "TV1A"],
["TV10", "TV10"],
["Viasat Film Classic", "TV1C"],
["Viasat Film Family", "TV1F"],
["Viasat Film Comedy", "TV1N"],
["Viasat Film Premiere", "TV1S"],
["TV3 Norway", "TV3N"],
["TV3 Sweden", "TV3S"],
["TV6 Norway", "TV6N"],
["TV6 Sweden", "TV6S"],
["TV8 Sweden", "TV8S"],
["TV3 Puls Denmark", "TVDP"],
["Viasat 4 Norway", "V4N"]
]
channels.each do |name, external_id|
@company.channels.create! name: name, external_id: external_id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment