Sha256: 5b86e29f0bf5cc1b2b00237beebfa84b26bf8ccdfd14f057ff6b350d082d2a48

Contents?: true

Size: 492 Bytes

Versions: 9

Compression:

Stored size: 492 Bytes

Contents

class CreateArchangelEntries < ActiveRecord::Migration[5.1]
  def change
    create_table :archangel_entries do |t|
      t.integer :collection_id, null: false
      t.text :value
      t.integer :position
      t.datetime :available_at
      t.datetime :deleted_at

      t.timestamps
    end

    add_index :archangel_entries, :available_at
    add_index :archangel_entries, :collection_id
    add_index :archangel_entries, :deleted_at
    add_index :archangel_entries, :position
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
archangel-0.4.0 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.3.0 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.8 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.7 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.6 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.5 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.4 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.3 db/migrate/20171006195023_create_archangel_entries.rb
archangel-0.0.2 db/migrate/20171006195023_create_archangel_entries.rb