Sha256: 8ea5c6c55ded4ad9ab9f63da4a2a34a0a97c957a92e66913f8a5eb318c30520b

Contents?: true

Size: 203 Bytes

Versions: 24

Compression:

Stored size: 203 Bytes

Contents

class CreateRoles < ActiveRecord::Migration
  def change
    create_table :roles do |t|
      t.string :name, null: false

      t.timestamps
    end

    add_index :roles, :name, unique: true
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bootswatch_rails-3.3.0.4 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.3.0.3 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.3.0.2 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.3.0.1 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.43 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.42 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.41 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.40 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.39 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.38 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.37 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.36 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.35 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.34 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.33 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.32 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.31 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.30 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.29 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb
bootswatch_rails-3.2.0.28 lib/generators/bootswatch_rails/sorcery/templates/role_migration.rb