-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from vilanovailageltru/add-file-auth-handler
Add file authorization handler
- Loading branch information
Showing
5 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ate_decidim_file_authorization_handler_census_datum.decidim_file_authorization_handler.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This migration comes from decidim_file_authorization_handler (originally 20171110120821) | ||
|
||
# frozen_string_literal: true | ||
|
||
class CreateDecidimFileAuthorizationHandlerCensusDatum < ActiveRecord::Migration[5.1] | ||
def change | ||
create_table :decidim_file_authorization_handler_census_data do |t| | ||
t.references :decidim_organization, index: { name: "decidim_census_data_org_id_index" } | ||
t.string :id_document | ||
t.date :birthdate | ||
|
||
# The rows in this table are immutable (insert or delete, not update) | ||
# To explicitly reflect this fact there is no `updated_at` column | ||
t.datetime "created_at", null: false | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters