Sha256: 933a7bf0b1c926d2b083e9e1a84e71f23434c1b363ec6b1a39577a9b66b4f704
Contents?: true
Size: 550 Bytes
Versions: 30
Compression:
Stored size: 550 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.timestamps end add_index :imports, :remote_id add_index :imports, [:synchronisable_type, :synchronisable_id] end def self.down remove_index :imports, :remote_id remove_index :imports, [:synchronisable_type, :synchronisable_id] drop_table :imports end end
Version data entries
30 entries across 15 versions & 1 rubygems