Sha256: b9cd70b73a615f4e6883d84220e4fc354edfce5411e2a4b978042e9195338704
Contents?: true
Size: 672 Bytes
Versions: 6
Compression:
Stored size: 672 Bytes
Contents
class CreateInterLibraryLoanTransitions < ActiveRecord::Migration def change create_table :inter_library_loan_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 :inter_library_loan_id t.timestamps end add_index :inter_library_loan_transitions, :inter_library_loan_id add_index :inter_library_loan_transitions, [:sort_key, :inter_library_loan_id], unique: true, name: "index_inter_library_loan_transitions_on_sort_key_and_loan_id" end end
Version data entries
6 entries across 6 versions & 1 rubygems