Sha256: 44e3b4ee04c2b68bc242e86135760a7a0d7e42f6d55c45a281372affdac2158f

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

class CreateIntroTours < ActiveRecord::Migration[6.1]
  def change
    create_table :intro_tours do |t|
      t.string   :ident,                null: false
      t.string   :controller_path,      null: false, default: ''
      t.string   :action_name,          null: false, default: ''
      t.text     :route
      t.text     :options
      t.boolean  :published,               default: false
      t.datetime :expired_at
      t.timestamps null: false
    end

    add_index :intro_tours, :ident, unique: true
    add_index :intro_tours, [:controller_path, :action_name, :published], name: 'index_intro_tours_on_controller_and_action_and_published'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
intro-0.4.1 spec/dummy/db/migrate/20201231044301_create_intro_tours.rb
intro-0.4.0 spec/dummy/db/migrate/20201231044301_create_intro_tours.rb