Sha256: 0b0844e48ef2ab779e92c2e76b99f6550a13136154fb70d4d0a0985911e2908f
Contents?: true
Size: 656 Bytes
Versions: 238
Compression:
Stored size: 656 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.integer :user_import_file_id t.timestamps end add_index :user_import_file_transitions, :user_import_file_id 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
238 entries across 235 versions & 22 rubygems