Sha256: bd80b8484283d5414cb8be02f465dc9a7be9af91c738038be4a355917bc6d052
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
# frozen_string_literal: true # This migration comes from sunrise (originally 20111216144915) class CreateStructures < ActiveRecord::Migration def self.up create_table :structures do |t| t.string :title, null: false t.string :slug, null: false, limit: 25 t.integer :structure_type_id, limit: 1, default: 0 t.integer :position_type_id, limit: 2, default: 0 t.boolean :is_visible, default: true t.string :redirect_url t.integer 'parent_id' t.integer 'lft', default: 0 t.integer 'rgt', default: 0 t.integer 'depth', default: 0 t.timestamps end add_index :structures, :structure_type_id add_index :structures, :position_type_id add_index :structures, :parent_id add_index :structures, [:lft, :rgt] end def self.down drop_table :structures end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | db/migrate/20130701092430_create_structures.sunrise.rb |