Sha256: 3c7711d875fd7305957720fedf3bb655630b81170492cb4228760940be5a65c5

Contents?: true

Size: 233 Bytes

Versions: 1

Compression:

Stored size: 233 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :title
      t.text :content
      t.string :slug

      t.timestamps
    end
    add_index :posts, :slug, unique: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_permalinkable-0.0.1 test/dummy/db/migrate/20140905082902_create_posts.rb