Sha256: 08533c6e56a761e1d1106fb9e4ce42bfdb4ab109c5b28e0efe8f964de57dcd56

Contents?: true

Size: 579 Bytes

Versions: 8

Compression:

Stored size: 579 Bytes

Contents

class CreateActiveAdminComments < ActiveRecord::Migration::Current
  include ActiveRecord::Concerns::Base

  #########################################
  #########################################

    # => Up
    def up
      create_table table do |t|
        t.references :resource, polymorphic: true
        t.references :author,   polymorphic: true
        t.string     :namespace
        t.text       :body
        t.timestamps
      end
      add_index table, [:namespace]
    end

  #########################################
  #########################################

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fl-0.3.8 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.6 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.5 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.4 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.3 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.2 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.1 db/migrate/20170725060408_create_active_admin_comments.rb
fl-0.3.0 db/migrate/20170725060408_create_active_admin_comments.rb