Sha256: 2e52814c2b15ce05d0e6c72793364e39fb1327ef47d5167847c6b9efe7cbd207
Contents?: true
Size: 496 Bytes
Versions: 9
Compression:
Stored size: 496 Bytes
Contents
class CreatePages < ActiveRecord::Migration[5.1] def change create_table :dhatu_pages do |t| t.string :name, :null => false, limit: 64 t.string :code, :null => false, limit: 64 t.references :feature t.string :status, :null => false, :default=>"unpublished", :limit=>16 t.integer :priority, default: 1, null: false t.timestamps null: false end add_index :dhatu_pages, :code, :unique => true add_index :dhatu_pages, :status end end
Version data entries
9 entries across 9 versions & 1 rubygems