Files
nairobi/db/migrate/20180611072816_create_proposal_dashboard_actions.rb
Juan Salvador Pérez García 1464bddfa8 Fixes #134
Adds an administration interface for the proposal dashboard actions.
2018-07-17 17:48:46 +02:00

18 lines
507 B
Ruby

# frozen_string_literal: true
class CreateProposalDashboardActions < ActiveRecord::Migration
def change
create_table :proposal_dashboard_actions do |t|
t.string :title, limit: 80
t.string :description
t.string :link
t.boolean :request_to_administrators, default: false
t.integer :day_offset, default: 0
t.integer :required_supports, default: 0
t.integer :order, default: 0
t.boolean :active, default: true
t.datetime :hidden_at
end
end
end