Sha256: 2b66644d38095c2eb9ed13dc1b2b0c367c2e591ee3052a85757433b5fd2fd1cb
Contents?: true
Size: 724 Bytes
Versions: 34
Compression:
Stored size: 724 Bytes
Contents
class CreateUserExportFileTransitions < ActiveRecord::Migration 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
34 entries across 30 versions & 13 rubygems