diff --git a/.env b/.env new file mode 100644 index 0000000..33609ac Binary files /dev/null and b/.env differ diff --git a/.git-crypt/.gitattributes b/.git-crypt/.gitattributes new file mode 100644 index 0000000..665b10e --- /dev/null +++ b/.git-crypt/.gitattributes @@ -0,0 +1,4 @@ +# Do not edit this file. To specify the files to encrypt, create your own +# .gitattributes file in the directory where your files are. +* !filter !diff +*.gpg binary diff --git a/.git-crypt/keys/default/0/1848D0B0D65FB6DA9F35A0272A0993FF58EE346E.gpg b/.git-crypt/keys/default/0/1848D0B0D65FB6DA9F35A0272A0993FF58EE346E.gpg new file mode 100644 index 0000000..03a47cf Binary files /dev/null and b/.git-crypt/keys/default/0/1848D0B0D65FB6DA9F35A0272A0993FF58EE346E.gpg differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..aed388b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.env filter=git-crypt diff=git-crypt +config/phantom-dc_config.rb filter=git-crypt diff=git-crypt +config/database.rb filter=git-crypt diff=git-crypt diff --git a/.gitignore b/.gitignore index 983f544..b18a597 100644 --- a/.gitignore +++ b/.gitignore @@ -6,12 +6,10 @@ vendor/gems/* !vendor/gems/cache/ .sass-cache/* db/*.db -config/database.rb .*.sw* *.swp -config/phantom-dc_config.rb .bundle .vagrant docker-compose.yml private/* -.env \ No newline at end of file + diff --git a/config/database.rb b/config/database.rb new file mode 100644 index 0000000..1305807 Binary files /dev/null and b/config/database.rb differ diff --git a/config/phantom-dc_config.rb b/config/phantom-dc_config.rb new file mode 100644 index 0000000..79ceaa2 Binary files /dev/null and b/config/phantom-dc_config.rb differ diff --git a/db/migrate/021_change_congress_member_actions_value_type.rb b/db/migrate/021_change_congress_member_actions_value_type.rb new file mode 100644 index 0000000..1072c5f --- /dev/null +++ b/db/migrate/021_change_congress_member_actions_value_type.rb @@ -0,0 +1,10 @@ +class ChangeCongressMemberActionsValueType < ActiveRecord::Migration + def self.up + change_column :congress_member_actions, :value, :text, limit: 65535 + end + + def self.down + change_column :congress_member_actions, :value, :string, limit: 511 + end +end + diff --git a/db/schema.rb b/db/schema.rb index 4591f1d..a72e99f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,3 +1,4 @@ +# encoding: UTF-8 # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. @@ -10,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20) do +ActiveRecord::Schema.define(version: 21) do create_table "campaign_tags", force: :cascade do |t| t.string "name", limit: 255 @@ -22,7 +23,7 @@ t.string "action", limit: 255 t.string "name", limit: 255 t.string "selector", limit: 255 - t.string "value", limit: 511 + t.text "value", limit: 65535 t.boolean "required", default: false t.integer "maxlength", limit: 4 t.string "captcha_selector", limit: 255