Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

how to delete database in rails

rake db:create          # Create the database from DATABASE_URL or config/database.yml for the current Rails.env (use db:create:all to create all dbs in the config)
rake db:drop            # Drops the database using DATABASE_URL or the current Rails.env (use db:drop:all to drop all databases)
rake db:fixtures:load   # Load fixtures into the current environment's database
rake db:migrate         # Migrate the database (options: VERSION=x, VERBOSE=false)
rake db:migrate:status  # Display status of migrations
rake db:rollback        # Rolls the schema back to the previous version (specify steps w/ STEP=n)
rake db:schema:dump     # Create a db/schema.rb file that can be portably used against any DB supported by AR
rake db:schema:load     # Load a schema.rb file into the database
rake db:seed            # Load the seed data from db/seeds.rb
rake db:setup           # Create the database, load the schema, and initialize with the seed data (use db:reset to also drop the db first)
rake db:structure:dump  # Dump the database structure to db/structure.sql
rake db:version         # Retrieves the current schema version number
Comment

PREVIOUS NEXT
Code Example
Ruby :: httparty SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (OpenSSL::SSL::SSLError) 
Ruby :: ruby hash merge 
Ruby :: ruby get decimal 
Ruby :: parse xml ruby 
Ruby :: how to write CSV file in rails 
Ruby :: ruby write csv file 
Ruby :: convert string to date ruby 
Ruby :: how to add font awesome icon in button for submit rails 
Ruby :: ruby map array 
Ruby :: rails route list 
Ruby :: contain .where rails 
Ruby :: ruby copy file 
Ruby :: rails add index specifc name 
Ruby :: ruby merge array of hashes into one hash 
Ruby :: ruby rails delete all of a model in console 
Ruby :: ruby hash with default value 
Ruby :: how to update model rails 
Ruby :: ruby hash print 
Ruby :: ruby includes 
Ruby :: ruby for programmers 
Ruby :: rails start id to 1000 
Ruby :: Rails checkbox checked/unchecked values 
Ruby :: ruby pdf to file 
Ruby :: best ruby cheat sheet 
Ruby :: rails migration error 
Ruby :: comment 
Ruby :: get specific key value from array of hashes in ruby 
R :: list all installed packages in r 
R :: make a sequence of timeseries per day in r 
R :: data table R select several columns 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =