Sha256: e54f4bda8af7938ad0f6729cf88758c5e32d7e142bdb56836ce3eed6464fc364

Contents?: true

Size: 279 Bytes

Versions: 22

Compression:

Stored size: 279 Bytes

Contents

class CreateRoles < ActiveRecord::Migration[5.1]
  def up
    create_table :roles do |t|
      t.string  :name, :null => false
      t.text    :description, :null => true

      t.text    :permissions

      t.timestamps
    end
  end

  def down
    drop_table :roles
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
symphonia-2.1.8 db/migrate/20130714140501_create_roles.rb
symphonia-2.1.7 db/migrate/20130714140501_create_roles.rb