Sha256: 7a33aef6693caf4c19b6d11be608e91bea9b29f622109bae6313486ab9b3c68b
Contents?: true
Size: 603 Bytes
Versions: 2
Compression:
Stored size: 603 Bytes
Contents
class CreateUserImportFileTransitions < ActiveRecord::Migration 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, [: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
2 entries across 2 versions & 1 rubygems