Sha256: 4ddff47837017338997b6d45c53d074ebf8e9e2c293a789aab29e67e45cef9a8
Contents?: true
Size: 674 Bytes
Versions: 4
Compression:
Stored size: 674 Bytes
Contents
class CreateVersionChildren < ActiveRecord::Migration def self.up create_table :version_children do |t| t.string :version_type, null: false t.integer :version_id, null: false t.string :versionable_type t.integer :versionable_id t.boolean :marked_for_removal, null: false, default: false end add_index :version_children, [:version_type, :version_id] add_index :version_children, [:versionable_type, :versionable_id] end def self.down remove_index :version_children, [:version_type, :version_id] remove_index :version_children, [:versionable_type, :versionable_id] drop_table :version_children end end
Version data entries
4 entries across 4 versions & 1 rubygems