Files
Dalan/db/migrate/20190813112503_create_restrictions.rb
2026-08-13 19:56:46 +03:30

13 lines
304 B
Ruby

class CreateRestrictions < ActiveRecord::Migration[5.2]
def change
create_table :restrictions do |t|
t.string :scope, limit: 64, null: false
t.string :value, limit: 64, null: false
t.string :state, limit: 16, default: 'enabled', null: false
t.timestamps
end
end
end