Sha256: f9b82afd30bfd27737ecf5d007703c3a5edb84c977ac2413dd050d5523cdb775

Contents?: true

Size: 326 Bytes

Versions: 7

Compression:

Stored size: 326 Bytes

Contents

class CreateProclaimComments < ActiveRecord::Migration[5.2]
	def change
		create_table :proclaim_comments do |t|
			t.belongs_to :post, index: true
			t.integer :parent_id

			t.string :author
			t.text :body

			t.timestamps null: false
		end

		add_foreign_key :proclaim_comments, :proclaim_posts, column: :post_id
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
proclaim-0.6.6 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.6.5 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.6.4 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.6.3 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.6.2 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.6.1 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.6.0 db/migrate/20141114235359_create_proclaim_comments.rb