Sha256: a7943d1fe9dd713682e0930384ed7667962298d2466bf952eed27190faaaed16
Contents?: true
Size: 820 Bytes
Versions: 22
Compression:
Stored size: 820 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_type, :synchronisable_id] remove_index :imports, [:synchronisable_type, :remote_id] remove_index :imports, [:synchronisable_type, :unique_id] drop_table :imports end end
Version data entries
22 entries across 22 versions & 1 rubygems