Sha256: 6c9a77a1054cd93f6089de33e5aba9cb440a05c06764b0d3e46a3f6747fc56b5
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
class CreateVersionAttributes < ActiveRecord::Migration def self.up create_table :version_attributes do |t| t.string :version_type, null: false t.integer :version_id, null: false t.string :name, null: false t.text :old_value t.text :new_value end add_index :version_attributes, [:version_type, :version_id] end def self.down remove_index :version_attributes, [:version_type, :version_id] drop_table :version_attributes end end
Version data entries
4 entries across 4 versions & 1 rubygems