Sha256: bee6bd6f231eeeb3a93d0f430d02236338ac5f0471fe85aaacae0ec126489d72
Contents?: true
Size: 807 Bytes
Versions: 9
Compression:
Stored size: 807 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 null: false 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
9 entries across 9 versions & 1 rubygems