Sha256: 138f81c661b6192f3854b9d9c8a2f617b89a0da07509663c8e63bb36852465e6
Contents?: true
Size: 485 Bytes
Versions: 39
Compression:
Stored size: 485 Bytes
Contents
# frozen_string_literal: true class CreateClientsAndChangeColumnCollation < ActiveRecord::Migration[5.2] def up create_table :clients do |t| t.string :name t.string :code, collation: :SQL_Latin1_General_CP1_CS_AS t.timestamps end change_column :clients, :name, :string, collation: 'SQL_Latin1_General_CP1_CS_AS' change_column :clients, :code, :string, collation: 'SQL_Latin1_General_CP1_CI_AS' end def down drop_table :clients end end
Version data entries
39 entries across 39 versions & 1 rubygems