Sha256: 5d9c9297b8793610b2e2a74b11c24ffc47d28a297849a508e6cff7396214cb75
Contents?: true
Size: 637 Bytes
Versions: 31
Compression:
Stored size: 637 Bytes
Contents
class CreateBookmarkStatTransitions < ActiveRecord::Migration[4.2] def change create_table :bookmark_stat_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 :bookmark_stat_id t.timestamps end add_index :bookmark_stat_transitions, :bookmark_stat_id add_index :bookmark_stat_transitions, %i[sort_key bookmark_stat_id], unique: true, name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id" end end
Version data entries
31 entries across 31 versions & 3 rubygems