Sha256: f65c0f5698791cd73b34403a56a73f9ae3273cd8eac17f1de4d1a87fd39aaac7

Contents?: true

Size: 598 Bytes

Versions: 3

Compression:

Stored size: 598 Bytes

Contents

class SorceryCore < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :username,         :null => false  # if you use another field as a username, for example email, you can safely remove this field.
      t.string :email,            :default => nil # if you use this field as a username, you might want to make it :null => false.
      t.string :crypted_password, :default => nil
      t.string :salt,             :default => nil
      t.string :role_id,          :default => nil

      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dust-cms-0.0.07 db/migrate/20121106195938_sorcery_core.rb
dust-cms-0.0.06 db/migrate/20121106195938_sorcery_core.rb
dust-cms-0.0.05 db/migrate/20121106195938_sorcery_core.rb