Format imported code

This commit is contained in:
Thor77 2018-11-11 19:38:08 +01:00
parent eb88f76fb8
commit 5774b2463a
15 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Group < ApplicationRecord
belongs_to :matches
belongs_to :teams

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
class GroupStage < ApplicationRecord
end

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
class Match < ApplicationRecord
end

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
class PlayoffStage < ApplicationRecord
end

View File

@ -1,2 +1,4 @@
# frozen_string_literal: true
class Team < ApplicationRecord
end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateGroups < ActiveRecord::Migration[5.2]
def change
create_table :groups do |t|

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateGroupStages < ActiveRecord::Migration[5.2]
def change
create_table :group_stages do |t|

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateMatches < ActiveRecord::Migration[5.2]
def change
create_table :matches do |t|

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreatePlayoffStages < ActiveRecord::Migration[5.2]
def change
create_table :playoff_stages do |t|

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class CreateTeams < ActiveRecord::Migration[5.2]
def change
create_table :teams do |t|

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class GroupStageTest < ActiveSupport::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class GroupTest < ActiveSupport::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class MatchTest < ActiveSupport::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class PlayoffStageTest < ActiveSupport::TestCase

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class TeamTest < ActiveSupport::TestCase