Sha256: 30952555bf8dfb076b48764be1ff573f50323f57b79930027c46f9581a540644

Contents?: true

Size: 217 Bytes

Versions: 5

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true

class CreateCategoriesTable < ActiveRecord::Migration[5.0]
  def change
    create_table :categories do |t|
      t.references :article, foreign_key: true, index: true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
voting-0.5.0 spec/support/db/migrate/create_categories_table.rb
voting-0.4.0 spec/support/db/migrate/create_categories_table.rb
voting-0.3.0 spec/support/db/migrate/create_categories_table.rb
voting-0.2.0 spec/support/db/migrate/create_categories_table.rb
voting-0.1.0 spec/support/db/migrate/create_categories_table.rb