Sha256: a248b02dfd7134c3db74e21019d06ab2cb352a6558a0ba17a4d8deec36ca89b1

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

class CreateArchangelWidgets < ActiveRecord::Migration[5.1]
  def change
    create_table :archangel_widgets do |t|
      t.integer :site_id, null: false
      t.string :name
      t.string :slug
      t.text :content
      t.integer :template_id
      t.datetime :deleted_at

      t.timestamps
    end

    add_index :archangel_widgets, :deleted_at
    add_index :archangel_widgets, :name
    add_index :archangel_widgets, :site_id
    add_index :archangel_widgets, :slug, unique: true
    add_index :archangel_widgets, :template_id
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
archangel-0.0.5 db/migrate/20171006175939_create_archangel_widgets.rb
archangel-0.0.4 db/migrate/20171006175939_create_archangel_widgets.rb
archangel-0.0.3 db/migrate/20171006175939_create_archangel_widgets.rb
archangel-0.0.2 db/migrate/20171006175939_create_archangel_widgets.rb