Sha256: 93770777501eaba812aede0b928a174185986e45969eb911555b6e5ac7b0e509

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

class JsdocCreateParamsTable < ActiveRecord::Migration
  def self.up
    create_table :jsdoc_params do |t|
      t.integer :function_id
      t.integer :order
      t.string :name
      t.string :default
      t.boolean :is_optional
      t.string :param_type
      t.text :description

      t.timestamps
    end

    add_index :jsdoc_params, :function_id
    add_index :jsdoc_params, :name
    add_index :jsdoc_params, :order
    add_index :jsdoc_params, :param_type
  end

  def self.down
    drop_table :jsdoc_params
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsdoc-rails-0.1 db/migrate/0005_jsdoc_create_params_table.rb
jsdoc-rails-0.0.2 lib/generators/jsdoc/templates/migrations/jsdoc_create_params_table.rb
jsdoc-rails-0.0.1 lib/generators/jsdoc/templates/migrations/jsdoc_create_params_table.rb