Sha256: 9bb597120e89141d413415106036dc264fb6f0cdd1e2577c986be26b082d7bfc

Contents?: true

Size: 224 Bytes

Versions: 8

Compression:

Stored size: 224 Bytes

Contents

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

      t.timestamps null: false
    end

    add_index :posts, :slug, unique: true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
human_urls-0.1.7.pre.alpha.0 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.6.pre.alpha.0 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.5.pre.alpha.0 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.4.pre.alpha.0 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.3.pre.alpha.0 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.2 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.1 test/dummy/db/migrate/20151022230845_create_posts.rb
human_urls-0.1.0 test/dummy/db/migrate/20151022230845_create_posts.rb