Sha256: f178a3c41b3e1c48041cee5f9e032bdcbaea918f4712443d90120f537c60ad33

Contents?: true

Size: 457 Bytes

Versions: 5

Compression:

Stored size: 457 Bytes

Contents

class CreateArchangelCollections < ActiveRecord::Migration[5.1]
  def change
    create_table :archangel_collections do |t|
      t.integer :site_id, null: false
      t.string :name
      t.string :slug
      t.datetime :deleted_at

      t.timestamps
    end

    add_index :archangel_collections, :deleted_at
    add_index :archangel_collections, :name
    add_index :archangel_collections, :site_id
    add_index :archangel_collections, :slug
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
archangel-0.4.0 db/migrate/20171006194044_create_archangel_collections.rb
archangel-0.3.0 db/migrate/20171006194044_create_archangel_collections.rb
archangel-0.0.8 db/migrate/20171006194044_create_archangel_collections.rb
archangel-0.0.7 db/migrate/20171006194044_create_archangel_collections.rb
archangel-0.0.6 db/migrate/20171006194044_create_archangel_collections.rb