Skip to content

Commit

Permalink
Added password to amazon, in plain text for now for testing and demo.…
Browse files Browse the repository at this point in the history
… Added field to amazon form
  • Loading branch information
LupusDei committed Apr 12, 2012
1 parent 8cb77aa commit 5763d04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/views/subscriptions/_amazon_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<%= f.label :email %><br />
<%= f.text_field :email %>
</div>
<div class="field">
<%= f.label :password %><br />
<%= f.password_field :password %>
</div>
<div class="field">
<%= f.label "Full Name" %><br />
<%= f.text_field :full_name %>
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20120412225032_add_password_to_amazon.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddPasswordToAmazon < ActiveRecord::Migration
def change
add_column :amazons, :password, :string
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20120408193358) do
ActiveRecord::Schema.define(:version => 20120412225032) do

create_table "addresses", :force => true do |t|
t.string "line1"
Expand All @@ -33,6 +33,7 @@
t.integer "address_id"
t.datetime "created_at"
t.datetime "updated_at"
t.string "password"
end

add_index "amazons", ["address_id"], :name => "index_amazons_on_address_id"
Expand Down

0 comments on commit 5763d04

Please sign in to comment.