Sha256: ac7ce2a5bbfa65db9d5b698ba763b8cf5423107882b6fa3ce22035ad47f72b05
Contents?: true
Size: 752 Bytes
Versions: 6
Compression:
Stored size: 752 Bytes
Contents
class CreateResourceExportFileTransitions < ActiveRecord::Migration[5.2] def change create_table :resource_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.integer :resource_export_file_id t.timestamps end add_index :resource_export_file_transitions, :resource_export_file_id, name: "index_resource_export_file_transitions_on_file_id" add_index :resource_export_file_transitions, [:sort_key, :resource_export_file_id], unique: true, name: "index_resource_export_file_transitions_on_sort_key_and_file_id" end end
Version data entries
6 entries across 6 versions & 6 rubygems