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-7.9.0 db/migrate/20150411152619_create_comments.rb
udongo-7.8.1 db/migrate/20150411152619_create_comments.rb
udongo-7.8.0 db/migrate/20150411152619_create_comments.rb
udongo-7.7.2 db/migrate/20150411152619_create_comments.rb
udongo-7.7.1 db/migrate/20150411152619_create_comments.rb
udongo-7.7.0 db/migrate/20150411152619_create_comments.rb
udongo-7.6.2 db/migrate/20150411152619_create_comments.rb
udongo-7.6.1 db/migrate/20150411152619_create_comments.rb
udongo-7.6.0 db/migrate/20150411152619_create_comments.rb
udongo-7.5.1 db/migrate/20150411152619_create_comments.rb
udongo-7.5.0 db/migrate/20150411152619_create_comments.rb
udongo-7.4.2 db/migrate/20150411152619_create_comments.rb
udongo-7.4.1 db/migrate/20150411152619_create_comments.rb
udongo-7.4.0 db/migrate/20150411152619_create_comments.rb
udongo-7.3.5 db/migrate/20150411152619_create_comments.rb
udongo-7.3.4 db/migrate/20150411152619_create_comments.rb
udongo-7.3.3 db/migrate/20150411152619_create_comments.rb
udongo-7.3.2 db/migrate/20150411152619_create_comments.rb
udongo-7.3.1 db/migrate/20150411152619_create_comments.rb
udongo-7.2.1 db/migrate/20150411152619_create_comments.rb