Sha256: aa4b4cf10eed14cfd46f30685e2856be511024b0ef25b42bae2612ea58e54670

Contents?: true

Size: 243 Bytes

Versions: 22

Compression:

Stored size: 243 Bytes

Contents

class CreateUser < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string  :name
      t.string  :role      
      t.string  :email
      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.8.5.1 spec/active_record/migrations/001_create_user.rb
cantango-0.8.0 spec/active_record/migrations/001_create_user.rb