gitshowcase/gitshowcase

View on GitHub
db/migrate/20170111023844_create_projects.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateProjects < ActiveRecord::Migration[5.0]
  def change
    create_table :projects do |t|
      t.string :title
      t.string :homepage
      t.string :repository
      t.string :description
      t.string :thumbnail
      t.string :language
      t.integer :position
      t.boolean :hide
      t.references :user, foreign_key: true, null: false

      t.timestamps
    end
  end
end