Sha256: b294c9203523c93c82b6a5f988369a555311b93f98d2dfab8b0804ecdddf31c7

Contents?: true

Size: 814 Bytes

Versions: 3

Compression:

Stored size: 814 Bytes

Contents

class JsdocCreateFunctionsTable < ActiveRecord::Migration
  def self.up
    create_table :jsdoc_functions do |t|
      t.string :name
      t.string :alias
      t.string :member_of
      t.integer :symbol_id
      t.string :function_type
      t.string :version
      t.text :description
      t.string :defined_in
      t.string :since
      t.string :author
      t.boolean :is_private
      t.boolean :is_inner
      t.boolean :is_static
      t.boolean :is_deprecated
      t.text :deprecated_description

      t.timestamps
    end

    add_index :jsdoc_functions, :symbol_id
    add_index :jsdoc_functions, :function_type
    add_index :jsdoc_functions, :name
    add_index :jsdoc_functions, :alias
    add_index :jsdoc_functions, :member_of
  end

  def self.down
    drop_table :jsdoc_functions
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsdoc-rails-0.1 db/migrate/0004_jsdoc_create_functions_table.rb
jsdoc-rails-0.0.2 lib/generators/jsdoc/templates/migrations/jsdoc_create_functions_table.rb
jsdoc-rails-0.0.1 lib/generators/jsdoc/templates/migrations/jsdoc_create_functions_table.rb