Sha256: 1e33a2122eda9d0d43fef1caf9aa5d15a5ed3821e1523feae6364792e32ad9a7

Contents?: true

Size: 176 Bytes

Versions: 6

Compression:

Stored size: 176 Bytes

Contents

class AddRolesToUsers < ActiveRecord::Migration<%= Rails::VERSION::MAJOR >= 5 ? "[#{Rails.version.to_f}]" : "" %>
  def change
    add_column :users, :roles, :string
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
petergate-3.0.0 lib/generators/petergate/templates/migrations/add_roles_to_users.rb
petergate-2.0.1 lib/generators/petergate/templates/migrations/add_roles_to_users.rb
petergate-1.9.1 lib/generators/petergate/templates/migrations/add_roles_to_users.rb
petergate-1.8.1 lib/generators/petergate/templates/migrations/add_roles_to_users.rb
petergate-1.8.0 lib/generators/petergate/templates/migrations/add_roles_to_users.rb
petergate-1.7.5 lib/generators/petergate/templates/migrations/add_roles_to_users.rb