Sha256: e20a6bce2bf2c662e2a58bacea4b69f3cb2690fa9cb1e35fae98b2ff8c582ec6

Contents?: true

Size: 412 Bytes

Versions: 2

Compression:

Stored size: 412 Bytes

Contents

class AddCategorialTags < ActiveRecord::Migration[5.1]
  def change
    create_table :categorical_tags do |t|
      t.string :label
      t.string :slug

      t.timestamps null: false

      t.index :label, unique: true
      t.index :slug, unique: true
    end
    create_table :categorical_taggings do |t|
      t.references :taggable, polymorphic: true, index: true
      t.integer :tag_id
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exposition-0.0.5.7.pre.alpha db/migrate/20160112204019_add_categorial_tags.rb
exposition-0.0.5.6.pre.alpha db/migrate/20160112204019_add_categorial_tags.rb