Sha256: 9fbefffd535d02ecf4b1954e818156656994c07bbd5b84a4d10ecfd5c38a81f2

Contents?: true

Size: 267 Bytes

Versions: 7

Compression:

Stored size: 267 Bytes

Contents

class CreatePages < ActiveRecord::Migration
  def change
    create_table :pages do |t|
      t.integer :user_id
      t.integer :person_id

      t.string  :title
      t.text    :content
      t.string  :state, default: :draft

      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
the_role-2.5.4 spec/dummy_app/db/migrate/20120314061307_create_pages.rb
the_role-2.5.3 spec/dummy_app/db/migrate/20120314061307_create_pages.rb
the_role-2.5.2 spec/dummy_app/db/migrate/20120314061307_create_pages.rb
the_role-2.5.1 spec/dummy_app/db/migrate/20120314061307_create_pages.rb
the_role-2.5 spec/dummy_app/db/migrate/20120314061307_create_pages.rb
the_role-2.4 spec/dummy_app/db/migrate/20120314061307_create_pages.rb
the_role-2.3 spec/dummy_app/db/migrate/20120314061307_create_pages.rb