Sha256: d839fdfeafc884eac7976c929d90843131f018c61687d19b8b44984511f051c7

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

class JsdocCreateSymbolsTable < ActiveRecord::Migration
  def self.up
    create_table :jsdoc_symbols do |t|
      t.string :name
      t.string :alias
      t.string :member_of
      t.integer :constructor_id
      t.string :symbol_type
      t.string :version
      t.text :description
      t.string :defined_in
      t.string :since
      t.string :author
      t.string :extends
      t.boolean :is_deprecated
      t.text :deprecated_description

      t.timestamps
    end

    add_index :jsdoc_symbols, :name
    add_index :jsdoc_symbols, :alias
    add_index :jsdoc_symbols, :member_of
    add_index :jsdoc_symbols, :symbol_type
    add_index :jsdoc_symbols, :constructor_id
  end

  def self.down
    drop_table :jsdoc_symbols
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsdoc-rails-0.1 db/migrate/0010_jsdoc_create_symbols_table.rb
jsdoc-rails-0.0.2 lib/generators/jsdoc/templates/migrations/jsdoc_create_symbols_table.rb
jsdoc-rails-0.0.1 lib/generators/jsdoc/templates/migrations/jsdoc_create_symbols_table.rb