Sha256: 18d25e14cdf1de2d43750fcc558a6acf46ac45176e987fb800952fb97f87a4a5
Contents?: true
Size: 661 Bytes
Versions: 6
Compression:
Stored size: 661 Bytes
Contents
class CreateUserImportFileTransitions < ActiveRecord::Migration[4.2] def change create_table :user_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 :user_import_file_id t.timestamps end add_index :user_import_file_transitions, :user_import_file_id add_index :user_import_file_transitions, [:sort_key, :user_import_file_id], unique: true, name: "index_user_import_file_transitions_on_sort_key_and_file_id" end end
Version data entries
6 entries across 6 versions & 2 rubygems