Sha256: 32fa8ddcd5ffe459b8f05590bfeb249246acb6ea1fb24d51a4b2157a4ef6ac72

Contents?: true

Size: 547 Bytes

Versions: 17

Compression:

Stored size: 547 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.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

17 entries across 14 versions & 5 rubygems

Version Path
fuck_comments-2.3.4 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments_ruby-2.3.4 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments_ruby-2.3.3 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.3.1 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.2.2 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.2.1 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.2.0 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.1.0 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.0.1 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
the_comments-2.0.0 spec/dummy_app/db/migrate/20130712061503_sorcery_core.rb
bootup-0.0.4.1 lib/generators/bootup/templates/authentication/models/sorcery_core.rb.erb
bootup-0.0.4.1 lib/generators/bootup/templates/authentication/migrate/20121128071307_sorcery_core.rb
bootup-0.0.4 lib/generators/bootup/templates/authentication/migrate/20121128071307_sorcery_core.rb
bootup-0.0.4 lib/generators/bootup/templates/authentication/models/sorcery_core.rb.erb
bootup-0.0.3 lib/generators/bootup/templates/authentication/migrate/20121128071307_sorcery_core.rb
bootup-0.0.3 lib/generators/bootup/templates/authentication/models/sorcery_core.rb.erb
sorcery-0.7.0 lib/generators/sorcery_migration/templates/core.rb