Sha256: d17a4cfe36665c2d002f18cc6e9bdc5cf8abdbc7325b361e2652790f6021edfb

Contents?: true

Size: 206 Bytes

Versions: 16

Compression:

Stored size: 206 Bytes

Contents

class AddRoleUserConstraint < ActiveRecord::Migration
  def up
    change_column :roles, :user_id, :integer, null: false
  end

  def down
    change_column :roles, :user_id, :integer, null: true
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
introspective_grape-0.6.1 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.5.7 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.5.6 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.5.5 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.5.4 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.5.2 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.5.0 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.4.3 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.4.2 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.4.1 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.4.0 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.3.9 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.3.7 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.3.6 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.3.5 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb
introspective_grape-0.3.3 spec/dummy/db/migrate/20150616205336_add_role_user_constraint.rb