Skip to content

Commit

Permalink
Added migations for adding a title to our lighthouse tickets.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed May 24, 2010
1 parent 44f328b commit 2a83660
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions db/migrate/20100524165201_add_title_to_light_house_ticket.rb
@@ -0,0 +1,9 @@
class AddTitleToLightHouseTicket < ActiveRecord::Migration
def self.up
add_column :lighthouse, :title, :string, :limit => 300
end

def self.down
remove_column :lighthouse, :title
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Expand Up @@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20100524163741) do
ActiveRecord::Schema.define(:version => 20100524165201) do

create_table "action_examples", :id => false, :force => true do |t|
t.integer "action_id", :null => false
Expand Down Expand Up @@ -63,6 +63,7 @@
create_table "lighthouse", :force => true do |t|
t.string "body", :null => false
t.string "ticket_id", :limit => 100, :null => false
t.string "title", :limit => 300
end

create_table "projects", :force => true do |t|
Expand Down

0 comments on commit 2a83660

Please sign in to comment.