Sha256: 2a3df8f967501cf977e15ad9ba17a4224324471127b0fca890d8fee8febcfc6f
Contents?: true
Size: 607 Bytes
Versions: 23
Compression:
Stored size: 607 Bytes
Contents
class CreateUserImportFileTransitions < ActiveRecord::Migration[4.2] def change create_table :user_import_file_transitions do |t| t.string :to_state if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/) t.text :metadata else t.text :metadata, default: "{}" end t.integer :sort_key t.references :user_import_file, index: true t.timestamps end add_index :user_import_file_transitions, %i[sort_key user_import_file_id], unique: true, name: "index_user_import_file_transitions_on_sort_key_and_file_id" end end
Version data entries
23 entries across 23 versions & 3 rubygems