Sha256: c1adea3ac1868388113267cb348701ffacc1055c998a02922c8d795174ea6f7c

Contents?: true

Size: 284 Bytes

Versions: 4

Compression:

Stored size: 284 Bytes

Contents

class CreateTheblogRoles < ActiveRecord::Migration
  def change
    create_table :theblog_roles do |t|
      t.string :name,       null: false, default: ""
      t.string :description

      t.timestamps null: false
    end
    add_index :theblog_roles, :name, unique: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
theblog-0.0.2.3 db/migrate/20151127182617_create_theblog_roles.rb
theblog-0.0.2.2 db/migrate/20151127182617_create_theblog_roles.rb
theblog-0.0.2.1 db/migrate/20151127182617_create_theblog_roles.rb
theblog-0.0.2 db/migrate/20151127182617_create_theblog_roles.rb