Sha256: 0f3b8dc4db9919787f1bed45cc1bd9489c0d1283774af637d464acdfcda8009a

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 Bytes

Contents

class CreateIntroTours < ActiveRecord::Migration<%= migration_version %>
  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

5 entries across 5 versions & 1 rubygems

Version Path
intro-0.4.1 lib/generators/intro/templates/db/create_intro_tours.rb.erb
intro-0.4.0 lib/generators/intro/templates/db/create_intro_tours.rb.erb
intro-0.3.0 lib/generators/intro/templates/db/create_intro_tours.rb.erb
intro-0.2.0 lib/generators/intro/templates/db/create_intro_tours.rb.erb
intro-0.1.0 lib/generators/intro/templates/db/create_intro_tours.rb.erb