Sha256: 7b872253287c7fa2dcfe072d5dca628ad55fafbc96d379a15635af4c10ec9600

Contents?: true

Size: 933 Bytes

Versions: 3

Compression:

Stored size: 933 Bytes

Contents

class JsdocCreatePropertiesTable < ActiveRecord::Migration
  def self.up
    create_table :jsdoc_properties do |t|
      t.string :name
      t.string :alias
      t.string :member_of
      t.integer :symbol_id
      t.string :property_type
      t.string :version
      t.text :description
      t.string :defined_in
      t.string :since
      t.string :author
      t.string :default
      t.boolean :is_private
      t.boolean :is_inner
      t.boolean :is_static
      t.boolean :is_constant
      t.boolean :is_deprecated
      t.boolean :is_readable
      t.boolean :is_writable
      t.text :deprecated_description

      t.timestamps
    end

    add_index :jsdoc_properties, :symbol_id
    add_index :jsdoc_properties, :property_type
    add_index :jsdoc_properties, :name
    add_index :jsdoc_properties, :alias
    add_index :jsdoc_properties, :member_of
  end

  def self.down
    drop_table :jsdoc_properties
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsdoc-rails-0.1 db/migrate/0006_jsdoc_create_properties_table.rb
jsdoc-rails-0.0.2 lib/generators/jsdoc/templates/migrations/jsdoc_create_properties_table.rb
jsdoc-rails-0.0.1 lib/generators/jsdoc/templates/migrations/jsdoc_create_properties_table.rb