5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 21:36:22 +00:00
panel/db/migrate/20190718185817_create_licencias.rb

17 lines
353 B
Ruby
Raw Permalink Normal View History

2019-07-19 22:37:53 +00:00
# frozen_string_literal: true
# Crea la tabla de licencias
class CreateLicencias < ActiveRecord::Migration[5.2]
def change
create_table :licencias do |t|
t.timestamps
t.string :name, unique: true
t.text :description
t.text :deed
t.string :url
end
add_belongs_to :sites, :licencia, index: true
end
end