Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed congress_members_actions :value column to TEXT to handle more data #182

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .env
Binary file not shown.
4 changes: 4 additions & 0 deletions .git-crypt/.gitattributes
Original file line number Diff line number Diff line change
@@ -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
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Binary file added config/database.rb
Binary file not shown.
Binary file added config/phantom-dc_config.rb
Binary file not shown.
10 changes: 10 additions & 0 deletions db/migrate/021_change_congress_member_actions_value_type.rb
Original file line number Diff line number Diff line change
@@ -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

5 changes: 3 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand All @@ -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
Expand Down