Sha256: 1727661ee3a6e42bce5ce559a92e6dbdf8cd19480a267c1678755e55c6fcf4d1
Contents?: true
Size: 751 Bytes
Versions: 17
Compression:
Stored size: 751 Bytes
Contents
class CreateResourceImportFileTransitions < ActiveRecord::Migration[4.2] def change create_table :resource_import_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_import_file_id t.timestamps end add_index :resource_import_file_transitions, :resource_import_file_id, name: "index_resource_import_file_transitions_on_file_id" add_index :resource_import_file_transitions, %i[sort_key resource_import_file_id], unique: true, name: "index_resource_import_file_transitions_on_sort_key_and_file_id" end end
Version data entries
17 entries across 17 versions & 2 rubygems