Sha256: 14353513b7477043621ac84ee2782dfbed7912936fbd08e913b24b429f92c725
Contents?: true
Size: 708 Bytes
Versions: 9
Compression:
Stored size: 708 Bytes
Contents
class CreateProjects < ActiveRecord::Migration[5.1] def change create_table :dhatu_projects do |t| t.string :name, :null => false, limit: 128 t.string :permalink, :null => false, limit: 128 t.string :short_description, null: true, limit: 512 t.text :description t.string :client, :null => false, limit: 128 t.references :category t.string :status, :null => false, :default=>"unpublished", :limit=>16 t.boolean :featured, default: false t.integer :priority, default: 1, null: false t.timestamps null: false end add_index :dhatu_projects, :permalink, :unique => true add_index :dhatu_projects, :status end end
Version data entries
9 entries across 9 versions & 1 rubygems