Sha256: a6740a46ef81f0d8da043cd90785c927bd222a40d2ee46a191665f90df45120b

Contents?: true

Size: 363 Bytes

Versions: 17

Compression:

Stored size: 363 Bytes

Contents

class CreateProclaimPosts < ActiveRecord::Migration
	def change
		create_table :proclaim_posts do |t|
			t.belongs_to :author, index: true

			t.string :title, null: false, default: ""
			t.text :body, null: false, default: ""

			t.string :state, null: false, default: "draft", index: true

			t.datetime :published_at
			t.timestamps null: false
		end
	end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
proclaim-0.5.6 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.5.5 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.5.3 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.5.2 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.5.1 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.5.0 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.4.0 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.3.1 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.3.0 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.2.4 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.2.2 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.2.1 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.2.0 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.1.3 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.1.2 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.1.1 db/migrate/20141108222616_create_proclaim_posts.rb
proclaim-0.1.0 db/migrate/20141108222616_create_proclaim_posts.rb