Sha256: 6006acc318fa1db21da9d4b35d2685fad5c73a5f1151f441bf875edc837b2d58

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string      :name
      t.string      :email
      t.boolean     :weekly_notifications, default: true
      t.boolean     :active, default: true

      t.timestamps
    end

    create_table :products do |t|
      t.string      :name

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
maily_herald-0.9.4 spec/dummy/db/migrate/20130723074347_create_users.rb
maily_herald-0.9.3 spec/dummy/db/migrate/20130723074347_create_users.rb
maily_herald-0.9.2 spec/dummy/db/migrate/20130723074347_create_users.rb
maily_herald-0.9.1 spec/dummy/db/migrate/20130723074347_create_users.rb
maily_herald-0.8.0 spec/dummy/db/migrate/20130723074347_create_users.rb