change_column :table_name, :column_name, :date
class CreateProducts < ActiveRecord::Migration
def change
create_table :products do |t|
t.string :name
t.text :description
t.timestamps
end
end
end
Code Example |
---|
Ruby :: online ruby compiler |
Ruby :: ruby merge arrays unique |
Ruby :: rails start id to 1000 |
Ruby :: ros2 publish message command line |
Ruby :: rails class note reminders |
Ruby :: activerecord exclude |
Ruby :: ruby nth element of array |
Ruby :: ruby assign rest of array |
Ruby :: rails interrupt if tooo long |
Ruby :: add two numbers ruby |
Ruby :: rails multiple rescue |
Ruby :: rails date field default today |
Ruby :: class inheriting multiple modules in ruby |
Ruby :: rspec log to console |
Ruby :: ruby md5 |
Ruby :: cloudbuild ruby googl |
Ruby :: ruby read file line by line |
R :: R, how to count missing values in a column |
R :: if not i startswith r |
R :: r na omit column |
R :: r dataframe column factor |
R :: how to multiply two columns in r |
R :: r seq |
R :: delete all rows that contain a string in R |
R :: R darekn color |
R :: how to link world bank data into r |
R :: how to randomly select R |
R :: how to load html file to r studio |
R :: formatc in r |
R :: créer un vecteur sur r |