Sha256: 103afb4f9f1dbf507932d892b0d852271a26e3910a8ff207c851b1a55a45d0ed
Contents?: true
Size: 795 Bytes
Versions: 12
Compression:
Stored size: 795 Bytes
Contents
class CreateImports < ActiveRecord::Migration def self.up create_table :imports do |t| t.string :synchronisable_type, null: false t.integer :synchronisable_id, null: false t.text :attrs t.string :remote_id, null: false t.string :unique_id t.timestamps end add_index :imports, :remote_id add_index :imports, [:synchronisable_type, :synchronisable_id] add_index :imports, [:synchronisable_type, :remote_id] add_index :imports, [:synchronisable_type, :unique_id] end def self.down remove_index :imports, :remote_id remove_index :imports, :synchronisable_id remove_index :imports, [:synchronisable_type, :remote_id] remove_index :imports, [:synchronisable_type, :unique_id] drop_table :imports end end
Version data entries
12 entries across 12 versions & 1 rubygems