Sha256: c235c5a31f721835f638c5109a18316aba614f019d21371a0bbb3715e6b4e6cf

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

Stored size: 259 Bytes

Contents

class CreateExamplePrgs < ActiveRecord::Migration
  def change
    create_table :example_prgs do |t|
      t.text :subject
      t.text :body
      t.boolean :published

      t.timestamps
    end
    add_index :example_prgs, :subject, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-prg-0.1.1 spec/dummy/db/migrate/20140225070319_create_example_prgs.rb
rails-prg-0.1.0 spec/dummy/db/migrate/20140225070319_create_example_prgs.rb