Sha256: 35e743ae51fc216d3da73975508ff036806736ae8fc41ca606895bfec2664f50

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :provider, null: false
      t.string :uid, null: false
      t.string :email, null: false, uniq: true
      t.integer :created, :limit => 8
      t.string :username
      t.boolean :verified
      t.boolean :admin
      t.string :referred_by

      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dailycred-0.1.21 lib/generators/templates/migration_create_user.rb
dailycred-0.1.2 lib/generators/templates/migration_create_user.rb
dailycred-0.1.1 lib/generators/templates/migration_create_user.rb
dailycred-0.1.0 lib/generators/templates/migration_create_user.rb