Sha256: 7accdb01c88bb7db933baab343a352b2925eae5dfe8af3922bcf611634c018b6

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

class CreateRailsPageCommentPageComments < ActiveRecord::Migration
  def self.up
    create_table :rails_page_comment_page_comments do |t|
      t.string  :page_uri, :null => false

      t.text :content
      t.timestamps
    end

    add_index "rails_page_comment_page_comments", ["page_uri"], :name => "idx_rails_page_comment_page_comments_page_uri"
  end

  def self.down
    drop_table :rails_page_comment_page_comments
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_page_comment-0.1.0 lib/generators/rails_page_comment/templates/active_record/migration.rb
rails_page_comment-0.0.3 lib/generators/rails_page_comment/templates/active_record/migration.rb