Sha256: 97ec353f1b9913add9c281e449f56214998604a208a8c25b38fa975c9495e9b5

Contents?: true

Size: 490 Bytes

Versions: 72

Compression:

Stored size: 490 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.integer :commentable_id
      t.string :commentable_type
      t.string :locale
      t.integer :parent_id
      t.string :author
      t.string :email
      t.string :website
      t.text :message
      t.string :status
      t.boolean :marked_as_spam

      t.timestamps null: false
    end

    add_index :comments, :commentable_id
    add_index :comments, :commentable_type
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
udongo-3.0.0 db/migrate/20150411152619_create_comments.rb
udongo-2.0.4 db/migrate/20150411152619_create_comments.rb
udongo-2.0.3 db/migrate/20150411152619_create_comments.rb
udongo-2.0.2 db/migrate/20150411152619_create_comments.rb
udongo-2.0.1 db/migrate/20150411152619_create_comments.rb
udongo-2.0.0 db/migrate/20150411152619_create_comments.rb
udongo-1.0.4 db/migrate/20150411152619_create_comments.rb
udongo-1.0.3 db/migrate/20150411152619_create_comments.rb
udongo-1.0.2 db/migrate/20150411152619_create_comments.rb
udongo-1.0.1 db/migrate/20150411152619_create_comments.rb
udongo-1.0.0 db/migrate/20150411152619_create_comments.rb
udongo-0.1.0 db/migrate/20150411152619_create_comments.rb