mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 03:11:41 +00:00
17 lines
353 B
Ruby
17 lines
353 B
Ruby
|
# 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
|