Welcome to mirror list, hosted at ThFree Co, Russian Federation.

2_create_another_table.rb « table_creation_with_down_method « migrations « click_house « fixtures « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a6f841a7279946f24b7ebd33a3d60251f09496a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

# rubocop: disable Gitlab/NamespacedClass -- Fixtures do not need to be namespaced
class CreateAnotherTable < ClickHouse::Migration
  def up
    execute <<~SQL
      CREATE TABLE another (
        id   UInt64,
        date Date
      ) ENGINE = Memory
    SQL
  end

  def down
    execute <<~SQL
      DROP TABLE another
    SQL
  end
end
# rubocop: enable Gitlab/NamespacedClass