Sha256: 8341b47855293a70b0f63314d8bd5fb8991ebc3ccccd87940e32fa7e357562ca
Contents?: true
Size: 633 Bytes
Versions: 90
Compression:
Stored size: 633 Bytes
Contents
class CreateBookmarkStatTransitions < ActiveRecord::Migration 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, [:sort_key, :bookmark_stat_id], unique: true, name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id" end end
Version data entries
90 entries across 85 versions & 7 rubygems