Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

how to rename a table in ruby

 class RenameOldTableToNewTable < ActiveRecord::Migration
   def change
     rename_table :old_table_name, :new_table_name
   end 
 end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rename #table #ruby
ADD COMMENT
Topic
Name
3+3 =