Sha256: a05474ca0d467bf761587c71ce2672b58a231c80dd318e2b6f67a8390dc1e01b

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

class JsdocCreateSeesTable < ActiveRecord::Migration
  def self.up
    create_table :jsdoc_sees do |t|
      t.integer :see_for_id
      t.string :see_for_type
      t.text :description

      t.timestamps
    end

    add_index :jsdoc_sees, :see_for_id
    add_index :jsdoc_sees, :see_for_type
  end

  def self.down
    drop_table :jsdoc_sees
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jsdoc-rails-0.1 db/migrate/0009_jsdoc_create_sees_table.rb
jsdoc-rails-0.0.2 lib/generators/jsdoc/templates/migrations/jsdoc_create_sees_table.rb
jsdoc-rails-0.0.1 lib/generators/jsdoc/templates/migrations/jsdoc_create_sees_table.rb