Sha256: f74d4dd9677ab8b8d70029fb881c2411404aa025035b29716a081c372d22b5f3
Contents?: true
Size: 644 Bytes
Versions: 256
Compression:
Stored size: 644 Bytes
Contents
class CreateImportRequestTransitions < ActiveRecord::Migration def change create_table :import_request_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 :import_request_id t.timestamps end add_index :import_request_transitions, :import_request_id add_index :import_request_transitions, [:sort_key, :import_request_id], unique: true, name: "index_import_request_transitions_on_sort_key_and_request_id" end end
Version data entries
256 entries across 248 versions & 19 rubygems