Sha256: 2f63658f768e90cf16fd88b2fbd6e9a6b38f52d8be6e70c736cae3dca440c7f9
Contents?: true
Size: 603 Bytes
Versions: 34
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
34 entries across 30 versions & 13 rubygems