Sha256: 2013a16a6803b95380c6c354d6a951d8c6e817b27520cc82cc2398a4ac4a976f
Contents?: true
Size: 729 Bytes
Versions: 132
Compression:
Stored size: 729 Bytes
Contents
class CreateUserExportFileTransitions < ActiveRecord::Migration[4.2] def change create_table :user_export_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_export_file, index: true t.timestamps end add_index :user_export_file_transitions, :user_export_file_id, name: "index_user_export_file_transitions_on_file_id" add_index :user_export_file_transitions, [:sort_key, :user_export_file_id], unique: true, name: "index_user_export_file_transitions_on_sort_key_and_file_id" end end
Version data entries
132 entries across 132 versions & 21 rubygems