Sha256: 3a76c377c15d01cd7be058c36593a8dd7c5ff3ba678ca34516ed36cef417636c

Contents?: true

Size: 572 Bytes

Versions: 7

Compression:

Stored size: 572 Bytes

Contents

class CreateMenus < ActiveRecord::Migration[6.0]
  def change
    create_table :menus do |t|
      t.string :mode, limit: 200
      t.string :action, limit: 50
      t.references :menu, index: true, foreign_key: true
      t.integer :tab, null: false, default: 0
      t.integer :position, null: false, default: 0
      t.integer :page_size, null: false, default: 0
      t.integer :state, null: false, default: 0
      t.integer :status, null: false, default: 0

      t.timestamps
    end
    add_index :menus, [:mode], unique: true
    add_index :menus, :tab
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
anoubis-1.0.12 db/migrate/20181022060211_create_menus.rb
anoubis-1.0.11 db/migrate/20181022060211_create_menus.rb
anoubis-1.0.10 db/migrate/20181022060211_create_menus.rb
anoubis-1.0.8 db/migrate/20181022060211_create_menus.rb
anoubis-1.0.7 db/migrate/20181022060211_create_menus.rb
anoubis-1.0.1 db/migrate/20181022060211_create_menus.rb
anoubis-1.0.0 db/migrate/20181022060211_create_menus.rb